1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
Tasks.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Im\V2\Chat\Collab\Entity;
4
5
use Bitrix\Im\V2\Chat\Collab\Entity;
6
use Bitrix\Main\Loader;
7
use Bitrix\Socialnetwork\Collab\Link\LinkType;
8
use Bitrix\Tasks\Internals\Counter;
9
use Bitrix\Tasks\Internals\Counter\CounterDictionary;
10
11
class
Tasks
extends
Entity
12
{
13
public
static
function
getRestEntityName
(): string
14
{
15
return
'tasks'
;
16
}
17
18
public
function
getCounterInternal
(): int
19
{
20
return
Counter::getInstance
($this->getContext()->getUserId())
21
->get(CounterDictionary::COUNTER_MEMBER_TOTAL, $this->groupId)
22
;
23
}
24
25
protected
function
getLinkType
():
LinkType
26
{
27
return
LinkType::Tasks;
28
}
29
30
public
static
function
isAvailable
(): bool
31
{
32
return
Loader::includeModule(
'tasks'
);
33
}
34
}
Bitrix\Im\V2\Chat\Collab\Entity\Tasks
Определения
Tasks.php:12
Bitrix\Im\V2\Chat\Collab\Entity\Tasks\getRestEntityName
static getRestEntityName()
Определения
Tasks.php:13
Bitrix\Im\V2\Chat\Collab\Entity\Tasks\isAvailable
static isAvailable()
Определения
Tasks.php:30
Bitrix\Im\V2\Chat\Collab\Entity\Tasks\getCounterInternal
getCounterInternal()
Определения
Tasks.php:18
Bitrix\Im\V2\Chat\Collab\Entity\Tasks\getLinkType
getLinkType()
Определения
Tasks.php:25
Bitrix\Main\Application\getInstance
static getInstance()
Определения
application.php:98
Bitrix\Main\Entity
Определения
ufield.php:9
Bitrix\Socialnetwork\Collab\Link\LinkType
LinkType
Определения
LinkType.php:8
bitrix
modules
im
lib
V2
Chat
Collab
Entity
Tasks.php
Создано системой
1.14.0