1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
BaseDepartment.php
См. документацию.
1<?php
2
4
5abstract class BaseDepartment implements IDepartment
6{
7 protected static ?int $topId = null;
8 protected static bool $wasSearchedTopId = false;
10
11 public function getTopCode(): ?string
12 {
13 $departmentId = $this->getTopId();
14
15 if (!isset($departmentId))
16 {
17 return null;
18 }
19
20 return 'DR' . $departmentId;
21 }
22
23 public function getColleagues(): array
24 {
25 $result = \CIntranetUtils::getDepartmentColleagues(null, true, false, 'Y', ['ID']);
26 $colleaguesIds = [];
27
28 while (($row = $result->Fetch()))
29 {
30 $id = (int)$row['ID'];
31 $colleaguesIds[$id] = $id;
32 }
33
34 return array_values($colleaguesIds);
35 }
36}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$result
Определения get_property_values.php:14