1 | <?php |
||
19 | class Module extends \yii\base\Module |
||
20 | { |
||
21 | /** @var array|StorageInterface */ |
||
22 | protected $_storage; |
||
23 | |||
24 | /** @var int */ |
||
25 | private $pageSize = 5; |
||
26 | |||
27 | public static function getInstance(): Module |
||
31 | |||
32 | /** |
||
33 | * This to use standard app pathes for views and layouts. |
||
34 | * @return string |
||
35 | */ |
||
36 | public function getViewPath() |
||
40 | |||
41 | /** |
||
42 | * @param string $pageName |
||
43 | * @return AbstractPage|null |
||
44 | * @throws \yii\base\InvalidConfigException |
||
45 | */ |
||
46 | public function find(string $pageName): ?PageInterface |
||
52 | |||
53 | /** |
||
54 | * @param string|null $id |
||
55 | * @return PagesList|null |
||
56 | * @throws \yii\base\InvalidConfigException |
||
57 | */ |
||
58 | public function findList(string $id = null): ?PagesList |
||
64 | |||
65 | /** |
||
66 | * @param array $storageConfig |
||
67 | */ |
||
68 | public function setStorage($storageConfig): void |
||
72 | |||
73 | /** |
||
74 | * @return StorageInterface |
||
75 | * @throws \yii\base\InvalidConfigException |
||
76 | */ |
||
77 | public function getStorage(): StorageInterface |
||
85 | |||
86 | /** |
||
87 | * @param int $pageSize |
||
88 | */ |
||
89 | public function setPageSize(int $pageSize): void |
||
93 | |||
94 | /** |
||
95 | * @return int |
||
96 | */ |
||
97 | public function getPageSize(): int |
||
101 | } |
||
102 |