1 | <?php |
||
17 | class Template #implements Template\Adapter |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * Name of the templating engine. |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $engine = 'Apix\View\Template\Mustache'; |
||
25 | |||
26 | /** |
||
27 | * The name of the template layout. |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $layout = 'default'; |
||
31 | |||
32 | /** |
||
33 | * The path to the view directory. |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $view_dir = null; |
||
37 | |||
38 | /** |
||
39 | * Sets the engine name. |
||
40 | * |
||
41 | * @param string|null $engine |
||
42 | */ |
||
43 | public function setEngine($engine = null) |
||
53 | |||
54 | /** |
||
55 | * Returns the engine name. |
||
56 | * |
||
57 | * @return string |
||
58 | */ |
||
59 | public function getEngine() |
||
63 | |||
64 | /** |
||
65 | * Sets the name of the template layout. |
||
66 | * |
||
67 | * @param string $layout |
||
68 | */ |
||
69 | public function setLayout($layout) |
||
73 | |||
74 | /** |
||
75 | * Sets the main directory for this template view. |
||
76 | * @var string |
||
77 | */ |
||
78 | public function setViewDir($dir) |
||
82 | |||
83 | } |
||
84 |