1 | <?php |
||
13 | class Route { |
||
14 | use |
||
15 | Singleton; |
||
16 | /** |
||
17 | * Current mirror according to configuration |
||
18 | * |
||
19 | * @deprecated Use `cs\Request::$mirror_index` instead |
||
20 | * |
||
21 | * @var int |
||
22 | */ |
||
23 | public $mirror_index = -1; |
||
24 | /** |
||
25 | * Relative address as it came from URL |
||
26 | * |
||
27 | * @deprecated Use `cs\Request::$uri` instead |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | public $raw_relative_address = ''; |
||
32 | /** |
||
33 | * Normalized processed representation of relative address, may differ from raw, should be used in most cases |
||
34 | * |
||
35 | * @deprecated Use `cs\Request::$path_normalized` instead |
||
36 | * |
||
37 | * @var string |
||
38 | */ |
||
39 | public $relative_address = ''; |
||
40 | /** |
||
41 | * Contains parsed route of current page url in form of array without module name and prefixes <i>admin</i>/<i>api</i> |
||
42 | * |
||
43 | * @deprecated Use `cs\Request::$route` instead |
||
44 | * |
||
45 | * @var array |
||
46 | */ |
||
47 | public $route = []; |
||
48 | /** |
||
49 | * Like $route property, but excludes numerical items |
||
50 | * |
||
51 | * @deprecated Use `cs\Request::$route_path` instead |
||
52 | * |
||
53 | * @var string[] |
||
54 | */ |
||
55 | public $path = []; |
||
56 | /** |
||
57 | * Like $route property, but only includes numerical items (opposite to route_path property) |
||
58 | * |
||
59 | * @deprecated Use `cs\Request::$route_ids` instead |
||
60 | * |
||
61 | * @var int[] |
||
62 | */ |
||
63 | public $ids = []; |
||
64 | /** |
||
65 | * Loading of configuration, initialization of $Config, $Cache, $L and Page objects, Routing processing |
||
66 | * |
||
67 | * @throws ExitException |
||
68 | */ |
||
69 | protected function construct () { |
||
78 | /** |
||
79 | * Process raw relative route. |
||
80 | * |
||
81 | * @deprecated Use `cs\Request::analyze_route_path()` instead |
||
82 | * |
||
83 | * As result returns current route in system in form of array, corrected page address, detects MODULE, that responsible for processing this url, |
||
84 | * whether this is API call, ADMIN page, or HOME page |
||
85 | * |
||
86 | * @param string $raw_relative_address |
||
87 | * |
||
88 | * @return false|string[] Relative address or <i>false</i> if access denied (occurs when admin access is limited by IP). Array contains next elements: |
||
89 | * route, relative_address, ADMIN, API, MODULE, HOME |
||
90 | */ |
||
91 | function process_route ($raw_relative_address) { |
||
103 | } |
||
104 |
This property has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.