%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 3.144.2.218 Web Server : Apache/2.4.52 (Ubuntu) System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 User : www-root ( 1010) PHP Version : 7.4.33 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, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/main/lib/ |
Upload File : |
<?php /** * Bitrix Framework * @package bitrix * @subpackage main * @copyright 2001-2012 Bitrix */ namespace Bitrix\Main; use Bitrix\Main\IO; /** * Class SiteTable * * DO NOT WRITE ANYTHING BELOW THIS * * <<< ORMENTITYANNOTATION * @method static EO_Site_Query query() * @method static EO_Site_Result getByPrimary($primary, array $parameters = array()) * @method static EO_Site_Result getById($id) * @method static EO_Site_Result getList(array $parameters = array()) * @method static EO_Site_Entity getEntity() * @method static \Bitrix\Main\EO_Site createObject($setDefaultValues = true) * @method static \Bitrix\Main\EO_Site_Collection createCollection() * @method static \Bitrix\Main\EO_Site wakeUpObject($row) * @method static \Bitrix\Main\EO_Site_Collection wakeUpCollection($rows) */ class SiteTable extends ORM\Data\DataManager { private static $documentRootCache = []; public static function getDocumentRoot($siteId = null) { if ($siteId === null) { $context = Application::getInstance()->getContext(); $siteId = $context->getSite(); } if (!isset(self::$documentRootCache[$siteId])) { $ttl = (CACHED_b_lang !== false ? CACHED_b_lang : 0); $site = SiteTable::getRow([ "filter" => ["=LID" => $siteId], "cache" => ["ttl" => $ttl], ]); if ($site && ($docRoot = $site["DOC_ROOT"]) && ($docRoot <> '')) { if (!IO\Path::isAbsolute($docRoot)) { $docRoot = IO\Path::combine(Application::getDocumentRoot(), $docRoot); } self::$documentRootCache[$siteId] = $docRoot; } else { self::$documentRootCache[$siteId] = Application::getDocumentRoot(); } } return self::$documentRootCache[$siteId]; } public static function getTableName() { return 'b_lang'; } public static function getMap() { return array( 'LID' => array( 'data_type' => 'string', 'primary' => true ), 'SORT' => array( 'data_type' => 'integer', ), 'DEF' => array( 'data_type' => 'boolean', 'values' => array('N', 'Y'), ), 'ACTIVE' => array( 'data_type' => 'boolean', 'values' => array('N', 'Y'), ), 'NAME' => array( 'data_type' => 'string' ), 'DIR' => array( 'data_type' => 'string' ), 'LANGUAGE_ID' => array( 'data_type' => 'string', ), 'DOC_ROOT' => array( 'data_type' => 'string', ), 'DOMAIN_LIMITED' => array( 'data_type' => 'boolean', 'values' => array('N', 'Y'), ), 'SERVER_NAME' => array( 'data_type' => 'string' ), 'SITE_NAME' => array( 'data_type' => 'string' ), 'EMAIL' => array( 'data_type' => 'string' ), 'CULTURE_ID' => array( 'data_type' => 'integer', ), 'CULTURE' => array( 'data_type' => 'Bitrix\Main\Localization\Culture', 'reference' => array('=this.CULTURE_ID' => 'ref.ID'), ), ); } }