File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/modules/catalog/lib/config/options/option.php
Back
<?php namespace Bitrix\Catalog\Config\Options; /** * Entity for working with options. * * Any option, no matter how small it is, can have different variants of values. * * By creating a separate class for an option, we can describe its purpose, * available options, as well as language messages. */ abstract class Option { public const NAME = null; public const DEFAULT_VALUE = null; /** * Get option value. * * @return string */ public static function get(): string { return (string)\Bitrix\Main\Config\Option::get('catalog', static::NAME, static::DEFAULT_VALUE); } /** * Set option value. * * @param string $value * * @return void */ public static function set(string $value): void { \Bitrix\Main\Config\Option::set('catalog', static::NAME, $value); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.26 |
proxy
|
phpinfo
|
Settings