1 | <?php |
||
20 | class Module extends \yii\base\Module |
||
21 | { |
||
22 | /** @var array|StorageInterface */ |
||
23 | protected $_storage; |
||
24 | |||
25 | /** @var int */ |
||
26 | private $pageSize = 5; |
||
27 | |||
28 | public static function getInstance(): Module |
||
32 | |||
33 | /** |
||
34 | * This to use standard app paths for views and layouts. |
||
35 | * @return string |
||
36 | */ |
||
37 | public function getViewPath() |
||
41 | |||
42 | /** |
||
43 | * @param string $pageName |
||
44 | * @return AbstractPage|null |
||
45 | * @throws InvalidConfigException |
||
46 | */ |
||
47 | public function find(string $pageName): ?PageInterface |
||
51 | |||
52 | /** |
||
53 | * @param string|null $id |
||
54 | * @return PagesList|null |
||
55 | * @throws InvalidConfigException |
||
56 | */ |
||
57 | public function findList(string $id = null): ?PagesList |
||
61 | |||
62 | /** |
||
63 | * @param array $storageConfig |
||
64 | */ |
||
65 | public function setStorage($storageConfig): void |
||
69 | |||
70 | /** |
||
71 | * @return StorageInterface |
||
72 | * @throws InvalidConfigException |
||
73 | */ |
||
74 | public function getStorage(): StorageInterface |
||
82 | |||
83 | /** |
||
84 | * @param int $pageSize |
||
85 | */ |
||
86 | public function setPageSize(int $pageSize): void |
||
90 | |||
91 | /** |
||
92 | * @return int |
||
93 | */ |
||
94 | public function getPageSize(): int |
||
98 | } |
||
99 |