Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
workgrouplistlivefeed.php
1
<?php
2
10
namespace
Bitrix\Socialnetwork\Internals\Counter\Provider
;
11
12
use
Bitrix\Main\ArgumentException
;
13
use
Bitrix\Main\DB\SqlExpression
;
14
use Bitrix\Main\Entity\ReferenceField;
15
use
Bitrix\Main\ORM\Fields\ExpressionField
;
16
use
Bitrix\Main\ORM\Query\Query
;
17
use
Bitrix\Main\ORM\Query\Join
;
18
use
Bitrix\Main\UserCounterTable
;
19
use
Bitrix\Socialnetwork\UserToGroupTable
;
20
use
Bitrix\Socialnetwork\WorkgroupSiteTable
;
21
22
class
WorkgroupListLivefeed
implements
Base
23
{
24
private
int
$userId;
25
26
public
function
__construct
(array $params = [])
27
{
28
$this->userId = (int)($params[
'userId'
] ?? 0);
29
30
if
($this->userId <= 0)
31
{
32
throw
new
ArgumentException
(
'Wrong userId value'
);
33
}
34
}
35
36
public
function
getCounterValue
(): array
37
{
38
return
[
39
'all'
=> $this->
getValue
(),
40
];
41
}
42
43
public
function
getValue
(): int
44
{
45
//todo oh
46
return
0;
47
}
48
}
Bitrix\Main\ArgumentException
Definition
exception.php:34
Bitrix\Main\DB\SqlExpression
Definition
sqlexpression.php:19
Bitrix\Main\ORM\Fields\ExpressionField
Definition
expressionfield.php:25
Bitrix\Main\ORM\Query\Join
Definition
join.php:19
Bitrix\Main\ORM\Query\Query
Definition
query.php:118
Bitrix\Main\UserCounterTable
Definition
usercounter.php:23
Bitrix\Socialnetwork\Internals\Counter\Provider\WorkgroupListLivefeed
Definition
workgrouplistlivefeed.php:23
Bitrix\Socialnetwork\Internals\Counter\Provider\WorkgroupListLivefeed\__construct
__construct(array $params=[])
Definition
workgrouplistlivefeed.php:26
Bitrix\Socialnetwork\Internals\Counter\Provider\WorkgroupListLivefeed\getValue
getValue()
Definition
workgrouplistlivefeed.php:43
Bitrix\Socialnetwork\Internals\Counter\Provider\WorkgroupListLivefeed\getCounterValue
getCounterValue()
Definition
workgrouplistlivefeed.php:36
Bitrix\Socialnetwork\UserToGroupTable
Definition
usertogroup.php:33
Bitrix\Socialnetwork\WorkgroupSiteTable
Definition
workgroupsite.php:32
Bitrix\Socialnetwork\Internals\Counter\Provider\Base
Definition
base.php:13
Bitrix\Socialnetwork\Internals\Counter\Provider
Definition
base.php:10
modules
socialnetwork
lib
internals
counter
provider
workgrouplistlivefeed.php
Создано системой
1.10.0