-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
yaf_route.stub.php
129 lines (95 loc) · 2.95 KB
/
yaf_route.stub.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?php
/** @generate-legacy-arginfo */
Interface Yaf_Route_Interface {
/**
* @param Yaf_Request_Abstract $request
* @return bool
*/
abstract public function route($request);
/**
* @return string|bool
*/
abstract public function assemble(array $info, array $query = NULL);
}
final class Yaf_Route_Static implements Yaf_Route_Interface {
public function match(string $uri):bool {}
/**
* @param Yaf_Request_Abstract $request
* @return bool
*/
public function route($request) {}
public function assemble(array $info, array $query = NULL):string|null|false;
}
final class Yaf_Route_Supervar implements Yaf_Route_Interface {
/* constants */
/* properties */
protected string $_var_name = NULL;
/* methods */
public function __construct(string $supervar_name) {}
/**
* @param Yaf_Request_Abstract $request
* @return bool
*/
public function route($request);
public function assemble(array $info, array $query = NULL):string|null|false;
}
final class Yaf_Route_Simple implements Yaf_Route_Interface {
/* constants */
/* properties */
protected string $controller = NULL;
protected string $module = NULL;
protected string $action = NULL;
/* methods */
public function __construct(string $module_name, string $controller_name, string $action_name) {}
/**
* @param Yaf_Request_Abstract $request
* @return bool
*/
public function route($request);
public function assemble(array $info, array $query = NULL):string|null|false;
}
final class Yaf_Route_Rewrite implements Yaf_Route_Interface {
/* constants */
/* properties */
protected array $_route = NULL;
protected array $_verify = NULL;
/* methods */
public function __construct(string $match, array $route, array $verify = NULL) { }
public function match(string $uri):?bool {}
/**
* @param Yaf_Request_Abstract $request
* @return bool
*/
public function route($request) {}
public function assemble(array $info, array $query = NULL):string|null|false;
}
final class Yaf_Route_Regex implements Yaf_Route_Interface {
/* constants */
/* properties */
protected array $_route = NULL;
protected array $_maps = NULL;
protected array $_verify = NULL;
/* methods */
public function __construct(string $match, array $route, array $map = NULL, array $verify = NULL, string $reverse = NULL) {}
public function match(string $uri):?bool {}
/**
* @param Yaf_Request_Abstract $request
* @return bool
*/
public function route($request) {}
public function assemble(array $info, array $query = NULL):string|null|false;
}
final class Yaf_Route_Map implements Yaf_Route_Interface {
/* constants */
/* properties */
protected bool $_ctl_router = 1;
protected string $_delimiter = NULL;
/* methods */
public function __construct(bool $controller_prefer = 1, string $delimiter = "") {}
/**
* @param Yaf_Request_Abstract $request
* @return bool
*/
public function route($request) {}
public function assemble(array $info, array $query = NULL):string|null|false;
}