-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
yaf_request.stub.php
148 lines (99 loc) · 3.62 KB
/
yaf_request.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?php
/** @generate-legacy-arginfo */
abstract class Yaf_Request_Abstract {
/* constants */
/* const SCHEME_HTTP = "http";
const SCHEME_HTTPS = "https"; */
/* properties */
public ?string $module = NULL;
public ?string $controller = NULL;
public ?string $action = NULL;
public ?string $method = NULL;
protected ?array $params = NULL;
protected ?string $language = NULL;
protected object $_exception = NULL;
protected string $_base_uri = "";
protected string $uri = "";
protected bool $dispatched = false;
protected bool $routed = false;
/* methods */
public function isGet():bool {}
public function isPost():bool {}
public function isPut():bool {}
public function isHead():bool {}
public function isOptions():bool {}
public function isDelete():bool {}
public function isPatch():bool {}
public function isCli():bool {}
public function isXmlHttpRequest():bool {}
public function getServer(string $name = NULL, mixed $default = NULL):mixed {}
public function getEnv(string $name = NULL, mixed $default = NULL):mixed {}
public function getQuery(string $name = NULL, mixed $default = NULL):mixed {}
public function getRequest(string $name = NULL, mixed $default = NULL):mixed {}
public function getPost(string $name = NULL, mixed $default = NULL):mixed {}
public function getCookie(string $name = NULL, mixed $default = NULL):mixed {}
public function getFiles(string $name = NULL, mixed $default = NULL):mixed {}
public function getRaw():string|null {}
public function get(string $name, mixed $default = NULL):mixed {}
/**
* @return Yaf_Request_Abstract|NULL
*/
public function clearParams():?object {}
/**
* @return Yaf_Request_Abstract|bool|NULL
*/
public function setParam(mixed $name, ?mixed $value = NULL):object|bool|null {}
public function getParam(string $name, mixed $default = NULL):mixed {}
public function getParams():?array {}
public function getException():?Exception {}
public function getModuleName():?string {}
public function getControllerName():?string {}
public function getActionName():?string {}
/**
* @return Yaf_Request_Abstract|NULL
*/
public function setModuleName(string $module, bool $format_name = true):?object {}
/**
* @return Yaf_Request_Abstract|NULL
*/
public function setControllerName(string $controller, bool $format_name = true):?object {}
/**
* @return Yaf_Request_Abstract|NULL
*/
public function setActionName(string $action, bool $format_name = true):?object {}
public function getMethod():?string {}
public function getLanguage():?string {}
/**
* @return Yaf_Request_Abstract|FALSE
*/
public function setBaseUri(string $uir):object|false {}
public function getBaseUri():?string {}
public function getRequestUri():?string {}
/**
* @return Yaf_Request_Abstract|NULL
*/
public function setRequestUri(string $uir):?object {}
public function isDispatched():bool {}
/**
* @return Yaf_Request_Abstract|NULL
*/
public function setDispatched(bool $flag = true):?object {}
public function isRouted():bool {}
/**
* @return Yaf_Request_Abstract|NULL
*/
public function setRouted(bool $flag = true):?object {}
}
class Yaf_Request_Http extends Yaf_Request_Abstract {
/* constants */
/* properties */
/* methods */
public function __construct(?string $requestUri = NULL, ?string $baseUri = NULL) {}
}
final class Yaf_Request_Simple extends Yaf_Request_Abstract {
/* constants */
/* properties */
/* methods */
public function __construct(?string $method = NULL, ?string $module = NULL, ?string $controller = NULL, ?string $action = NULL, ?array $params = NULL) {}
public function isXmlHttpRequest():bool{}
}