| 1 | <?php |
||
| 8 | class View implements ViewContract |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The Jaxon template engine |
||
| 12 | * |
||
| 13 | * @var Engine |
||
| 14 | */ |
||
| 15 | protected $xEngine; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The class constructor |
||
| 19 | */ |
||
| 20 | public function __construct(Engine $xEngine) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Add a namespace to this view renderer |
||
| 27 | * |
||
| 28 | * @param string $sNamespace The namespace name |
||
| 29 | * @param string $sDirectory The namespace directory |
||
| 30 | * @param string $sExtension The extension to append to template names |
||
| 31 | * |
||
| 32 | * @return void |
||
| 33 | */ |
||
| 34 | public function addNamespace($sNamespace, $sDirectory, $sExtension = '') |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Render a view |
||
| 41 | * |
||
| 42 | * @param Store $store A store populated with the view data |
||
| 43 | * |
||
| 44 | * @return string The string representation of the view |
||
| 45 | */ |
||
| 46 | public function render(Store $store) |
||
| 58 | } |
||
| 59 |