1 <?php
2
3 /**
4 * Расширение позовляющее в верстке узнать осуществляется ли в данный моиент импорт
5 *
6 * @author inxo
7 */
8 class ImportCatalogMessage extends Extension {
9
10 function filename() {
11 return ASSETS_PATH . '/_import/import.xml';
12 }
13
14 function Import() {
15 if (file_exists($this->filename())) {
16 $config = new ImportConfig();
17 if ($config->clearDatabaseCatalog || $config->clearDatabaseProducts) {
18 return true;
19 }
20 }
21 return false;
22 }
23
24 }
25
26 ?>
27