forked from laruence/yaf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
yaf_controller.stub.php
91 lines (66 loc) · 2.3 KB
/
yaf_controller.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
<?php
/** @generate-legacy-arginfo */
abstract class Yaf_Controller_Abstract {
/* constants */
/* properties */
protected array $actions = NULL;
protected string $_module = NULL;
protected string $_name = NULL;
protected object $_request = NULL;
protected object $_response = NULL;
protected array $_invoke_args = NULL;
protected object $_view = NULL;
/* methods */
public function __construct();
/**
* @return Yaf_Request_Abstract|NULL
*/
final public function getRequest():?object;
/**
* @return Yaf_Response_Abstract|NULL
*/
final public function getResponse():?object;
final public function getModuleName():?string;
/**
* @return Yaf_View_Interface|NULL
*/
final public function getView():?object;
/**
* @return Yaf_View_Interface|NULL
*/
final public function initView(array $options = NULL):?object;
final public function setViewpath(string $view_directory):?bool;
final public function getViewpath():?string;
/**
*
* @polymorphism
* final public function forward(string $action):?bool
* final public function forward(string $controller, $action):?bool
* final public function forward(string $action, array $invoke_args):?bool
* final public function forward(string $module, string $controller, string $action):?bool
* final public function forward(string $controller, string $action, array $invoke_args):?bool
* final public function forward(string $module, string $controller, string $action, array $invoke_args):?bool
*/
final public function forward(mixed $args1, mixed $args2 = NULL, mixed $args3 = NULL, mixed $args4 = NULL):?bool {}
final public function redirect(string $url):?bool;
final public function getInvokeArgs():?array;
final public function getInvokeArg(string $name):?string;
final public function getName():?string;
final protected function render(string $tpl, array $parameters = NULL):string|null|bool;
final protected function display(string $tpl, array $parameters = NULL):?bool;
}
abstract class Yaf_Action_Abstract extends Yaf_Controller_Abstract {
/* constants */
/* properties */
/* methods */
/* @tentative-return-type */
/**
* @return bool
*/
abstract public function execute();
/**
* @return Yaf_Controller_Abstract|NULL
*/
public function getController():?object;
public function getControllerName():?string;
}