Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
storemaster.php
1<?php
2
4
6
12final class StoreMaster
13{
14 private const IS_MASTER_USED_OPTION = 'use_store_master_used';
15
19 public static function isUsed(): bool
20 {
21 return Option::get('catalog', self::IS_MASTER_USED_OPTION, 'N') === 'Y';
22 }
23
24 public static function setIsUsed(): void
25 {
26 Option::set('catalog', self::IS_MASTER_USED_OPTION, 'Y');
27 }
28}