1 | <?php |
||
13 | class ExternalModule extends Module implements iExternalModule |
||
14 | { |
||
15 | /** @var Module Pointer to parent module */ |
||
16 | public $parent = null; |
||
17 | |||
18 | /** |
||
19 | * ExternalModule constructor. |
||
20 | * |
||
21 | * @param string $path |
||
22 | * @param ResourcesInterface $resources |
||
23 | * @param SystemInterface $system |
||
24 | */ |
||
25 | public function __construct($path, ResourcesInterface $resources, SystemInterface $system) |
||
39 | |||
40 | /** @see \samson\core\iExternalModule::copy() */ |
||
41 | public function ©() |
||
54 | |||
55 | /** Обработчик сериализации объекта */ |
||
56 | public function __sleep() |
||
61 | |||
62 | /** |
||
63 | * Set current view for rendering. |
||
64 | * |
||
65 | * @param string $viewPath Path for view searching |
||
66 | * @return self Chaining |
||
67 | */ |
||
68 | public function view($viewPath) |
||
90 | |||
91 | /** |
||
92 | * Overloading default module rendering behaviour |
||
93 | * as it is used in templates and views using m()->render() |
||
94 | * without specifying concrete module or passing a variable. |
||
95 | * |
||
96 | * @param string $controller Controller action name |
||
97 | */ |
||
98 | public function render($controller = null) |
||
112 | |||
113 | public function setId($id) |
||
117 | |||
118 | /** |
||
119 | * Module preparation handler. |
||
120 | * This function is triggered after module instance is being created. |
||
121 | * |
||
122 | * @return bool Preparation result |
||
123 | */ |
||
124 | public function prepare() |
||
128 | |||
129 | /** |
||
130 | * Module initialization. |
||
131 | * This function is triggered when system has started. So here |
||
132 | * we have all modules already prepared and loaded. |
||
133 | * |
||
134 | * @param array $params Collection of module initialization parameters |
||
135 | * @return bool Initialization result |
||
136 | */ |
||
137 | public function init(array $params = array()) |
||
143 | } |
||
144 |