| 1 | <?php |
||
| 20 | class Hooks |
||
| 21 | { |
||
| 22 | /* |
||
| 23 | * Prototypes |
||
| 24 | */ |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Returns a view for a controller. |
||
| 28 | * |
||
| 29 | * @param Controller $controller |
||
| 30 | * |
||
| 31 | * @return View |
||
| 32 | */ |
||
| 33 | static public function controller_get_view(Controller $controller) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Avoids a trip to `assert_property_is_readable` for controllers or routes that do not |
||
| 44 | * define a `template` property. |
||
| 45 | * |
||
| 46 | * @param $target |
||
| 47 | * |
||
| 48 | * @throws PropertyNotDefined |
||
| 49 | */ |
||
| 50 | static public function get_template($target) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Avoids a trip to `assert_property_is_readable` for controllers or routes that do not |
||
| 57 | * define a `layout` property. |
||
| 58 | * |
||
| 59 | * @param $target |
||
| 60 | * |
||
| 61 | * @throws PropertyNotDefined |
||
| 62 | */ |
||
| 63 | static public function get_layout($target) |
||
| 67 | } |
||
| 68 |