1 | <?php |
||
18 | class EntityIndexList extends Model |
||
19 | { |
||
20 | const INDEX_PATH = '/upload/sitemap'; |
||
21 | |||
22 | public $files; |
||
23 | private $info; |
||
24 | |||
25 | private $_lang; |
||
26 | |||
27 | /** |
||
28 | * EntityIndexList constructor. Pass current language from controller request |
||
29 | * @param bool $currentLang |
||
30 | */ |
||
31 | public function __construct($currentLang) |
||
36 | |||
37 | /** |
||
38 | * Try to find sitemap indexes in storage directory |
||
39 | * @throws SyntaxException |
||
40 | */ |
||
41 | public function before() |
||
57 | |||
58 | /** |
||
59 | * Build sitemap index files information - location, last modify time |
||
60 | */ |
||
61 | public function make() |
||
75 | |||
76 | /** |
||
77 | * Get sitemap index files info as array |
||
78 | * @return array|null |
||
79 | */ |
||
80 | public function getInfo() |
||
84 | } |