forked from laruence/yaf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
yaf_view.stub.php
82 lines (59 loc) · 1.88 KB
/
yaf_view.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
<?php
/** @generate-legacy-arginfo */
Interface Yaf_View_Interface {
/**
* @return Yaf_View_Interface|bool
*/
public function assign(string $name, mixed $value = NULL);
/**
* @return string|bool
*/
public function render(string $tpl, array $tpl_vars = NULL);
/**
* @return Yaf_View_Interface|bool
*/
public function display(string $tpl, array $tpl_vars = NULL);
/**
* @return bool
*/
public function setScriptPath(string $template_dir);
/**
* @return string
*/
public function getScriptPath();
}
final class Yaf_View_Simple implements Yaf_View_Interface {
/* constants */
/* properties */
protected ?array $_tpl_vars = NULL;
protected ?string $_tpl_dir = NULL;
protected ?array $_options = NULL;
/* methods */
public function __construct(string $tempalte_dir, array $options = NULL) {}
public function __isset(string $name):bool {}
public function get(string $name = NULL):mixed {}
/**
* @return Yaf_View_Simple|NULL|FALSE
*/
public function assign(mixed $name = NULL, mixed $default = NULL):object|null|false {}
public function render(string $tpl, ?array $tpl_vars = NULL):null|string|false {}
public function eval(string $tpl_str, ?array $vars = NULL):null|string|false {}
public function display(string $tpl, ?array $tpl_vars = NULL):?bool {}
/**
* @return Yaf_View_Simple|NULL
*/
public function assignRef(string $name = NULL, mixed &$value):?object {}
/**
* @return Yaf_View_Simple|NULL
*/
public function clear(string $name = NULL):?object {}
/**
* @return Yaf_View_Simple|NULL|FALSE
*/
public function setScriptPath(string $template_dir):object|null|bool {}
public function getScriptPath():?string {}
/** @implementation-alias Yaf_View_Simple::get */
public function __get(string $name = NULL):mixed {}
/** @implementation-alias Yaf_View_Simple::assign */
public function __set(string $name, mixed $value):void {}
}