1 | <?php |
||
18 | class Module extends \yii\base\Module |
||
19 | { |
||
20 | /** @var array|StorageInterface */ |
||
21 | protected $_storage; |
||
22 | |||
23 | public static function getInstance(): Module |
||
27 | |||
28 | /** |
||
29 | * This to use standard app pathes for views and layouts. |
||
30 | * @return string |
||
31 | */ |
||
32 | public function getViewPath() |
||
36 | |||
37 | /** |
||
38 | * @param string $pageName |
||
39 | * @return AbstractPage|null |
||
40 | * @throws \yii\base\InvalidConfigException |
||
41 | */ |
||
42 | public function find(string $pageName): ?AbstractPage |
||
48 | |||
49 | /** |
||
50 | * @param string|null $id |
||
51 | * @return PagesList|null |
||
52 | * @throws \yii\base\InvalidConfigException |
||
53 | */ |
||
54 | public function findList(string $id = null): ?PagesList |
||
60 | |||
61 | /** |
||
62 | * @param array $storageConfig |
||
63 | */ |
||
64 | public function setStorage($storageConfig): void |
||
68 | |||
69 | /** |
||
70 | * @return StorageInterface |
||
71 | * @throws \yii\base\InvalidConfigException |
||
72 | */ |
||
73 | public function getStorage(): StorageInterface |
||
81 | } |
||
82 |