1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Tasks.php
См. документацию.
1<?php
2
3namespace Bitrix\Im\V2\Chat\Collab\Entity;
4
5use Bitrix\Im\V2\Chat\Collab\Entity;
6use Bitrix\Main\Loader;
7use Bitrix\Socialnetwork\Collab\Link\LinkType;
8use Bitrix\Tasks\Internals\Counter;
9use Bitrix\Tasks\Internals\Counter\CounterDictionary;
10
11class 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}
static getRestEntityName()
Определения Tasks.php:13
static isAvailable()
Определения Tasks.php:30
static getInstance()
Определения application.php:98
Определения ufield.php:9