Метод используется для идентификации административного раздела сайта /bitrix/admin/
. Возвращает true
если в этом разделе, и false
в остальных случаях
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Возвращает нужную форму множественного числа в зависимости от количества | |
* | |
* Пример вызова: | |
* pluralForm(1, ["рубль", "рубля", "рублей"]); | |
* | |
* @param float|int $number Число | |
* @param string [3] $titles Подписи для 1, 3 и 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Возвращает нужную форму множественного числа в зависимости от количества | |
* | |
* Пример вызова: | |
* pluralForm(1, ["рубль", "рубля", "рублей"]); | |
* | |
* @param float|int $number Число | |
* @param string[3] $titles Подписи для 1, 3 и 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Bitrix\Main\Diag\Debug; | |
use Bitrix\Main\Diag\Helper; | |
/*Write in file*/ | |
//Debug::writeToFile($variable, $varName, $file); | |
Debug::writeToFile(['ID' => $ID, 'fields' => $arResult ], null, "log.log"); | |
Debug::dumpToFile(['ID' => $ID, 'fields' => $arResult ], null, "log.log"); | |
/*Time label*/ |
NewerOlder