1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
BaseDepartment.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Im\V2\Integration\HumanResources\Department
;
4
5
abstract
class
BaseDepartment
implements
IDepartment
6
{
7
protected
static
?
int
$topId
=
null
;
8
protected
static
bool
$wasSearchedTopId
=
false
;
9
protected
array
$structureDepartments
= [];
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
}
Bitrix\Im\V2\Integration\HumanResources\Department\BaseDepartment
Определения
BaseDepartment.php:6
Bitrix\Im\V2\Integration\HumanResources\Department\BaseDepartment\$topId
static int $topId
Определения
BaseDepartment.php:7
Bitrix\Im\V2\Integration\HumanResources\Department\BaseDepartment\getColleagues
getColleagues()
Определения
BaseDepartment.php:23
Bitrix\Im\V2\Integration\HumanResources\Department\BaseDepartment\$structureDepartments
array $structureDepartments
Определения
BaseDepartment.php:9
Bitrix\Im\V2\Integration\HumanResources\Department\BaseDepartment\$wasSearchedTopId
static bool $wasSearchedTopId
Определения
BaseDepartment.php:8
Bitrix\Im\V2\Integration\HumanResources\Department\BaseDepartment\getTopCode
getTopCode()
Определения
BaseDepartment.php:11
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$result
$result
Определения
get_property_values.php:14
Bitrix\Im\V2\Integration\HumanResources\Department\IDepartment
Определения
IDepartment.php:6
Bitrix\Im\V2\Integration\HumanResources\Department\IDepartment\getTopId
getTopId()
Bitrix\Im\V2\Integration\HumanResources\Department
Определения
BaseDepartment.php:3
bitrix
modules
im
lib
V2
Integration
HumanResources
Department
BaseDepartment.php
Создано системой
1.14.0