File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/modules/main/lib/ui/accessrights/entity/department.php
Back
<?php /** * Bitrix Framework * @package bitrix * @subpackage tasks * @copyright 2001-2021 Bitrix */ namespace Bitrix\Main\UI\AccessRights\Entity; use Bitrix\Main\Access\AccessCode; class Department extends EntityBase { public function getType(): string { return AccessCode::TYPE_DEPARTMENT; } public function getName(): string { if ($this->model) { return $this->model['NAME']; } return ''; } public function getUrl(): string { return '/company/structure.php?set_filter_structure=Y&structure_UF_DEPARTMENT='. $this->getId(); } public function getAvatar(int $width = 58, int $height = 58): ?string { return ''; } protected function loadModel() { if (!$this->model) { $structure = \CIntranetUtils::GetStructure(); if (array_key_exists($this->getId(), $structure['DATA'])) { $this->model = $structure['DATA'][$this->getId()]; } } return $this->model; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.26 |
proxy
|
phpinfo
|
Settings