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