1 | <?php |
||
9 | class CViewBasic implements \Anax\DI\IInjectionAware |
||
10 | { |
||
11 | use \Anax\DI\TInjectable; |
||
12 | |||
13 | |||
14 | |||
15 | /** |
||
16 | * Properties |
||
17 | * |
||
18 | */ |
||
19 | private $template; // Template file or array |
||
20 | private $templateData = []; // Data to send to template file |
||
21 | private $sortOrder; // For sorting views |
||
22 | private $type; // Type of view |
||
23 | |||
24 | |||
25 | |||
26 | /** |
||
27 | * Set values for the view. |
||
28 | * |
||
29 | * @param string/array $template the template file, or array |
||
|
|||
30 | * @param array $data variables to make available to the view, default is empty |
||
31 | * @param int $sort which order to display the views, if suitable |
||
32 | * @param string $type which type of view |
||
33 | * |
||
34 | * @return $this |
||
35 | */ |
||
36 | public function set($template, $data = [], $sort = 0, $type = 'file') |
||
43 | |||
44 | |||
45 | /** |
||
46 | * Render the view. |
||
47 | * |
||
48 | * @return void |
||
49 | * @throws \Exception |
||
50 | */ |
||
51 | public function render() |
||
83 | |||
84 | |||
85 | |||
86 | /** |
||
87 | * Give the sort order for this view. |
||
88 | * |
||
89 | * @return int |
||
90 | */ |
||
91 | public function sortOrder() |
||
95 | } |
||
96 |
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.