Switching between modes
Switching between modes is performed as follows:
if (\Bitrix\Main\Loader::includeModule('landing')) { \Bitrix\Landing\Rights::switchMode(); }
Define which model is presently is enabled in the project using the method:
if (\Bitrix\Main\Loader::includeModule('landing')) { if (\Bitrix\Landing\Rights::isExtendedMode()) { echo 'Extended mode'; } else { echo 'Rule mode'; } }
© «Bitrix24», 2001-2024