File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/socialnetwork/lib/livefeed/renderparts/department.php
Back
<?php namespace Bitrix\Socialnetwork\Livefeed\RenderParts; use Bitrix\Main\Localization\Loc; use Bitrix\Main\Loader; use Bitrix\Socialnetwork\Helper\Path; Loc::loadMessages(__FILE__); final class Department extends Base { public function getData($entityId = 0): array { static $departmentPath = null; $result = $this->getMetaResult(); $options = $this->getOptions(); if ( $entityId > 0 && Loader::includeModule('iblock') && ($res = \CIBlockSection::getByID($entityId)) && ($iblockSection = $res->fetch()) ) { $result['id'] = $entityId; $result['name'] = $iblockSection["NAME"]; if ( empty($options['skipLink']) || !$options['skipLink'] ) { if ($departmentPath === null) { $departmentPath = ( (!isset($options['mobile']) || !$options['mobile']) && (!isset($options['im']) || !$options['im']) ? Path::get('department_path_template') : '' ); } if (!empty($departmentPath)) { $result['link'] = \CComponentEngine::makePathFromTemplate( $departmentPath, array( "ID" => $entityId ) ); } } } return $result; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.27 |
proxy
|
phpinfo
|
Settings