Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/iblock/lib/orm/ |
Upload File : |
<?php /** * Bitrix Framework * @package bitrix * @subpackage iblock * @copyright 2001-2018 Bitrix */ namespace Bitrix\Iblock\ORM; use Bitrix\Iblock\IblockTable; /** * @package bitrix * @subpackage iblock */ class Loader { public static function autoLoad($class) { // search for data classes only // object and collection classes will be resolved by main orm loader if (mb_substr($class, -5) !== 'Table') { return; } // check iblock regular namespace $namespace = mb_substr($class, 0, mb_strrpos($class, '\\')); $className = mb_substr($class, mb_strrpos($class, '\\') + 1); if ( $namespace == IblockTable::DATA_CLASS_NAMESPACE // regular iblock entity namespace && mb_strpos($className, IblockTable::DATA_CLASS_PREFIX) === 0 // prefix of iblock entities ) { $iblockApiCode = mb_substr($className, mb_strlen(IblockTable::DATA_CLASS_PREFIX), -5); IblockTable::compileEntity($iblockApiCode); } } }