[url=https://dev.1c-bitrix.ru/api_d7/detail.php?ID=1752619]set[/url]
public static
\Bitrix\Main\Config\Option::set(
string $moduleId,
string $name,
string $value = "",
string $siteId = ""
);
Sets an option value and saves it into a DB. After saving the OnAfterSetOption event is triggered.
Parameters
ParameterDescriptionVersion
$moduleIdThe module ID.
$nameThe option name.
$valueThe option value.
$siteIdThe site ID, if the option depends on a site.
Exceptions
\Bitrix\Main\ArgumentOutOfRangeException
Examples