uawdijnntqw1x1x1
IP : 216.73.216.30
Hostname : xhost1.intravision.ru
Kernel : Linux xhost1.intravision.ru 3.16.0-7-amd64 #1 SMP Debian 3.16.59-1 (2018-10-03) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
tiskom
/
data
/
.
/
www
/
tiskom.xhost.intravision.ru
/
bitrix
/
modules
/
iblock
/
lib
/
model
/
section.php
/
/
<?php namespace Bitrix\Iblock\Model; use Bitrix\Iblock\Iblock; use Bitrix\Iblock\IblockTable; use Bitrix\Iblock\SectionTable; class Section { private static $entityInstance = []; /** * @param int|string|Iblock $iblock Iblock object, or API_CODE, or ID * * @return SectionTable|string|null */ final public static function compileEntityByIblock($iblock) { $iblockId = static::resolveIblockId($iblock); if ($iblockId <= 0) { return null; } if (!isset(self::$entityInstance[$iblockId])) { $className = 'Section'.$iblockId.'Table'; $entityName = "\\Bitrix\\Iblock\\".$className; $referenceName = 'Bitrix\Iblock\Section'.$iblockId; $entity = ' namespace Bitrix\Iblock; class '.$className.' extends \Bitrix\Iblock\SectionTable { public static function getUfId() { return "IBLOCK_'.$iblockId.'_SECTION"; } public static function getMap() { $fields = parent::getMap(); $fields["PARENT_SECTION"] = array( "data_type" => "'.$referenceName.'", "reference" => array("=this.IBLOCK_SECTION_ID" => "ref.ID"), ); return $fields; } public static function setDefaultScope($query) { return $query->where("IBLOCK_ID", '.$iblockId.'); } }'; eval($entity); self::$entityInstance[$iblockId] = $entityName; } return self::$entityInstance[$iblockId]; } /** * @param int|string|Iblock $iblock * * @return int|null * @throws \Bitrix\Main\ArgumentException * @throws \Bitrix\Main\ObjectPropertyException * @throws \Bitrix\Main\SystemException */ protected static function resolveIblockId($iblock) { $iblockId = null; if ($iblock instanceof Iblock) { $iblockId = $iblock->getId(); } elseif (is_string($iblock)) { $iblockApiCode = $iblock; $iblock = IblockTable::query() ->addSelect('ID') ->where('API_CODE', $iblockApiCode) ->fetch(); if (!empty($iblock)) { $iblockId = $iblock['ID']; } } if (empty($iblockId) && is_numeric($iblock)) { $iblockId = (int) $iblock; } return $iblockId; } }
/var/www/tiskom/data/./www/tiskom.xhost.intravision.ru/bitrix/modules/iblock/lib/model/section.php