1 | <?php |
||
9 | class CView implements \Anax\DI\IInjectionAware |
||
10 | { |
||
11 | use THelpers, |
||
12 | \Anax\DI\TInjectionAware; |
||
13 | |||
14 | |||
15 | |||
16 | /** |
||
17 | * Properties |
||
18 | * |
||
19 | */ |
||
20 | private $template; // Template file or array |
||
21 | private $templateData = []; // Data to send to template file |
||
22 | private $sortOrder; // For sorting views |
||
23 | private $type; // Type of view |
||
24 | |||
25 | |||
26 | |||
27 | /** |
||
28 | * Set values for the view. |
||
29 | * |
||
30 | * @param string/array $template the template file, or array |
||
|
|||
31 | * @param array $data variables to make available to the |
||
32 | * view, default is empty |
||
33 | * @param int $sort which order to display the views, |
||
34 | * if suitable |
||
35 | * @param string $type which type of view |
||
36 | * |
||
37 | * @return $this |
||
38 | */ |
||
39 | public function set($template, $data = [], $sort = 0, $type = "file") |
||
71 | |||
72 | |||
73 | |||
74 | /** |
||
75 | * Render the view. |
||
76 | * |
||
77 | * @return void |
||
78 | */ |
||
79 | public function render() |
||
110 | |||
111 | |||
112 | |||
113 | /** |
||
114 | * Give the sort order for this view. |
||
115 | * |
||
116 | * @return int |
||
117 | */ |
||
118 | public function sortOrder() |
||
122 | } |
||
123 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.