Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
store.php
1
<?php
2
3
namespace
Bitrix\Catalog\Component\Preset
;
4
5
use
Bitrix\Catalog\Component\UseStore
;
6
use
Bitrix\Main\Config\Option
;
7
8
class
Store
implements
Preset
9
{
10
public
function
enable
()
11
{
12
Option::set(
'catalog'
,
'preset_store_catalog_stores'
,
'Y'
);
13
14
UseStore::installCatalogStores();
15
}
16
17
public
function
disable
()
18
{
19
Option::delete(
'catalog'
, [
'name'
=>
'preset_store_catalog_stores'
]);
20
}
21
22
public
function
isOn
(): bool
23
{
24
return
Option::get(
'catalog'
,
'preset_store_catalog_stores'
,
'N'
) ===
'Y'
;
25
}
26
}
Bitrix\Catalog\Component\Preset\Store
Definition
store.php:9
Bitrix\Catalog\Component\Preset\Store\isOn
isOn()
Definition
store.php:22
Bitrix\Catalog\Component\Preset\Store\disable
disable()
Definition
store.php:17
Bitrix\Catalog\Component\Preset\Store\enable
enable()
Definition
store.php:10
Bitrix\Catalog\Component\UseStore
Definition
usestore.php:22
Bitrix\Main\Config\Option
Definition
option.php:15
Bitrix\Catalog\Component\Preset\Preset
Definition
preset.php:6
Bitrix\Catalog\Component\Preset
Definition
crm.php:4
modules
catalog
lib
component
preset
store.php
Создано системой
1.10.0