Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
option.php
1<?php
2
4
13abstract class Option
14{
15 public const NAME = null;
16 public const DEFAULT_VALUE = null;
17
23 public static function get(): string
24 {
25 return (string)\Bitrix\Main\Config\Option::get('catalog', static::NAME, static::DEFAULT_VALUE);
26 }
27
35 public static function set(string $value): void
36 {
37 \Bitrix\Main\Config\Option::set('catalog', static::NAME, $value);
38 }
39}