1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
bitrix24newuser.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Socialnetwork\Livefeed
;
4
5
use
Bitrix\Main\Localization\Loc
;
6
use
Bitrix\Main\UserTable
;
7
use
Bitrix\Socialnetwork\LogTable
;
8
9
final
class
Bitrix24NewUser
extends
IntranetNewUser
10
{
11
public
const
PROVIDER_ID
=
'BITRIX24_NEW_USER'
;
12
public
const
CONTENT_TYPE_ID
=
'BITRIX24_NEW_USER'
;
13
14
public
function
getEventId
():
array
15
{
16
return
[
'bitrix24_new_user'
];
17
}
18
19
public
function
initSourceFields
()
20
{
21
$ratingEntityId
= $this->
getEntityId
();
22
$userId
= 0;
23
24
if
(!empty(
$ratingEntityId
))
25
{
26
$res
=
LogTable::getList
(
array
(
27
'filter'
=>
array
(
28
'@EVENT_ID'
=> $this->
getEventId
(),
29
'=RATING_ENTITY_ID'
=>
$ratingEntityId
30
),
31
'select'
=>
array
(
'ID'
,
'ENTITY_ID'
)
32
));
33
if
($logEntry =
$res
->fetch())
34
{
35
$this->
setLogId
($logEntry[
'ID'
]);
36
$userId
= $logEntry[
'ENTITY_ID'
];
37
}
38
}
39
40
if
(
$userId
> 0)
41
{
42
$res
= UserTable::getList(
array
(
43
'filter'
=>
array
(
44
'=ID'
=>
$userId
45
)
46
));
47
if
(
$user
=
$res
->fetch())
48
{
49
$this->
setSourceFields
(
$user
);
50
51
$userName
= \CUser::formatName(
52
\CSite::getNameFormat(),
53
$user
,
54
true
,
55
false
56
);
57
$user
[
'FULL_NAME'
] =
$userName
;
58
59
$this->
setSourceFields
(array_merge(
$user
,
array
(
'LOG_ENTRY'
=> $logEntry)));
60
$this->
setSourceTitle
(Loc::getMessage(
'SONET_LIVEFEED_BITRIX24_NEW_USER_TITLE'
,
array
(
61
'#USER_NAME#'
=>
$userName
62
)));
63
}
64
}
65
}
66
}
$userId
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения
check_mail.php:18
Bitrix\Main\Localization\Loc
Определения
loc.php:12
Bitrix\Main\ORM\Data\DataManager\getList
static getList(array $parameters=array())
Определения
datamanager.php:431
Bitrix\Main\UserTable
Определения
user.php:48
Bitrix\Socialnetwork\Livefeed\Bitrix24NewUser
Определения
bitrix24newuser.php:10
Bitrix\Socialnetwork\Livefeed\Bitrix24NewUser\initSourceFields
initSourceFields()
Определения
bitrix24newuser.php:19
Bitrix\Socialnetwork\Livefeed\Bitrix24NewUser\CONTENT_TYPE_ID
const CONTENT_TYPE_ID
Определения
bitrix24newuser.php:12
Bitrix\Socialnetwork\Livefeed\Bitrix24NewUser\getEventId
getEventId()
Определения
bitrix24newuser.php:14
Bitrix\Socialnetwork\Livefeed\Bitrix24NewUser\PROVIDER_ID
const PROVIDER_ID
Определения
bitrix24newuser.php:11
Bitrix\Socialnetwork\Livefeed\IntranetNewUser
Определения
intranetnewuser.php:16
Bitrix\Socialnetwork\Livefeed\Provider\getEntityId
getEntityId()
Определения
provider.php:619
Bitrix\Socialnetwork\Livefeed\Provider\setLogId
setLogId($logId)
Определения
provider.php:624
Bitrix\Socialnetwork\Livefeed\Provider\setSourceFields
setSourceFields(array $fields)
Определения
provider.php:639
Bitrix\Socialnetwork\Livefeed\Provider\setSourceTitle
setSourceTitle($title)
Определения
provider.php:677
Bitrix\Socialnetwork\Livefeed\Provider\$ratingEntityId
int null $ratingEntityId
Определения
provider.php:60
Bitrix\Socialnetwork\LogTable
Определения
log.php:36
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$res
$res
Определения
filter_act.php:7
Bitrix\Main\$user
$user
Определения
mysql_to_pgsql.php:33
Bitrix\Socialnetwork\Livefeed
Определения
bitrix24newuser.php:3
$userName
else $userName
Определения
order_form.php:75
bitrix
modules
socialnetwork
lib
livefeed
bitrix24newuser.php
Создано системой
1.14.0