-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
yaf_dispatcher.stub.php
143 lines (115 loc) · 3.21 KB
/
yaf_dispatcher.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
<?php
/** @generate-legacy-arginfo */
final class Yaf_Dispatcher {
/* constants */
/* properties */
static protected object $_instance = NULL;
protected object $_router = NULL;
protected object $_view = NULL;
protected object $_request = NULL;
protected array $_plugins = NULL;
protected bool $_auto_render = true;
protected bool $_return_response = false;
protected bool $_instantly_flush = true;
protected string $_default_module = NULL;
protected string $_default_controller = NULL;
protected string $_default_action = NULL;
/* methods */
private function __construct();
/**
* @return Yaf_Dispatcher|NULL
*/
public function enableView():?object;
/**
* @return Yaf_Dispatcher|NULL
*/
public function disableView():?object;
/**
* @return Yaf_View_Interface|NULL|FALSE
*/
public function initView(string $templates_dir, array $options = NULL):object|null|false;
/**
* @param Yaf_View_Interface $view
* @return Yaf_Dispatcher|NULL
*/
public function setView(object $view):?object;
/**
* @param Yaf_Request_Abstract $request
* @return Yaf_Dispatcher|NULL
*/
public function setRequest(object $request):?object;
/**
* @param Yaf_Response_Abstract $response
* @return Yaf_Dispatcher|NULL
*/
public function setResponse(object $response):?object;
/**
* @return Yaf_Application|NULL
*/
public function getApplication():?object;
/**
* @return Yaf_Router|NULL
*/
public function getRouter():?object;
/**
* @return Yaf_Request_Abstract|NULL
*/
public function getRequest():?object;
/**
* @return Yaf_Response_Abstract|NULL
*/
public function getResponse():?object;
/**
* @return Yaf_Dispatcher|NULL|FALSE
*/
public function setErrorHandler(mixed $callback, int $error_types = 0):object|null|false;
/**
* @return Yaf_Dispatcher|NULL|FALSE
*/
public function setDefaultModule(string $module):object|null|false;
/**
* @return Yaf_Dispatcher|NULL|FALSE
*/
public function setDefaultController(string $controller):object|null|false;
/**
* @return Yaf_Dispatcher|NULL|FALSE
*/
public function setDefaultAction(string $action):object|null|false;
/**
* @return Yaf_Dispatcher|NULL|FALSE
*/
public function returnResponse(bool $flag = false):object|null|false;
/**
* @return Yaf_Dispatcher|NULL|BOOL
*/
public function autoRender(?bool $flag = NULL):object|null|bool;
/**
* @return Yaf_Dispatcher|NULL|BOOL
*/
public function flushInstantly(?bool $flag = NULL):object|null|bool;
/**
* @param Yaf_Request_Abstract $request
* @return Yaf_Response_Abstract|NULL|FALSE
*/
public function dispatch(object $request):object|null|false;
/**
* @return Yaf_Dispatcher|NULL|BOOL
*/
public function throwException(?bool $flag = NULL):object|null|bool;
/**
* @return Yaf_Dispatcher|NULL|BOOL
*/
public function catchException(?bool $flag = NULL):object|null|bool;
/**
* @param Yaf_Plugin_Abstract $plugin
* @return Yaf_Dispatcher|NULL|FALSE
*/
public function registerPlugin(object $plugin):object|null|false;
public function getDefaultModule():?string;
public function getDefaultController():?string;
public function getDefaultAction():?string;
/**
* @return Yaf_Dispatcher|NULL
*/
public static function getInstance():?object;
}