Skip to content

Commit 183c865

Browse files
committed
updating api
1 parent d0773c7 commit 183c865

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

docs/api/phalcon_mvc.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10556,6 +10556,8 @@ echo $router->getControllerName();
1055610556
```php
1055710557
const POSITION_FIRST = 0;
1055810558
const POSITION_LAST = 1;
10559+
const URI_SOURCE_GET_URL = 0;
10560+
const URI_SOURCE_SERVER_REQUEST_URI = 1;
1055910561
```
1056010562

1056110563
### Properties
@@ -10650,6 +10652,11 @@ protected $removeExtraSlashes = false;
1065010652
*/
1065110653
protected $routes;
1065210654

10655+
/**
10656+
* @var int
10657+
*/
10658+
protected $uriSource;
10659+
1065310660
/**
1065410661
* @var bool
1065510662
*/
@@ -10845,6 +10852,13 @@ public function getParams(): array;
1084510852
Returns the processed parameters
1084610853

1084710854

10855+
```php
10856+
public function getRewriteUri(): string;
10857+
```
10858+
Get rewrite info. This info is read from $_GET["_url"].
10859+
This returns '/' if the rewrite information cannot be read
10860+
10861+
1084810862
```php
1084910863
public function getRouteById( mixed $id ): RouteInterface | bool;
1085010864
```
@@ -10960,12 +10974,30 @@ public function setKeyRouteNames( array $routeNames ): Router;
1096010974

1096110975

1096210976

10977+
```php
10978+
public function setUriSource( int $uriSource ): Router;
10979+
```
10980+
Sets the URI source. One of the URI_SOURCE_* constants
10981+
10982+
```php
10983+
$router->setUriSource(
10984+
Router::URI_SOURCE_SERVER_REQUEST_URI
10985+
);
10986+
```
10987+
10988+
1096310989
```php
1096410990
public function wasMatched(): bool;
1096510991
```
1096610992
Checks if the router matches any of the defined routes
1096710993

1096810994

10995+
```php
10996+
protected function extractRealUri( string $uri ): string;
10997+
```
10998+
10999+
11000+
1096911001

1097011002

1097111003
## Mvc\Router\Annotations

0 commit comments

Comments
 (0)