Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
handlers.php
1
<?php
8
namespace
Bitrix\Main\Rest
;
9
10
use
Bitrix\Main\UserConsent
;
11
12
class
Handlers
13
{
14
const
SCOPE_USER
=
'user'
;
15
const
SCOPE_USER_CONSENT
=
'userconsent'
;
16
const
SCOPE_RATING
=
'rating'
;
17
const
SCOPE_SMILE
=
'smile'
;
18
const
SCOPE_USER_FIELD_CONFIG
=
'userfieldconfig'
;
19
20
public
static
function
onRestServiceBuildDescription
()
21
{
22
return
array(
23
static::SCOPE_USER => array(
24
'user.history.list'
=> array(User::class,
'getHistoryList'
),
25
'user.history.fields.list'
=> array(User::class,
'getHistoryFieldsList'
),
26
),
27
static::SCOPE_USER_CONSENT => array(
28
'userconsent.consent.add'
=> array(UserConsent\
Rest::class
,
'addConsent'
),
29
'userconsent.agreement.list'
=> array(UserConsent\
Rest::class
,
'getAgreementList'
),
30
'userconsent.agreement.text'
=> array(UserConsent\
Rest::class
,
'getAgreementText'
),
31
),
32
static::SCOPE_RATING => array(
33
'like.list'
=> array(
Rating::class
,
'getLikeList'
),
34
'like.reactions'
=> array(
Rating::class
,
'getLikeReactions'
),
35
),
36
static::SCOPE_SMILE => array(
37
'smile.get'
=> array(Smile::class,
'getList'
),
38
),
39
static::SCOPE_USER_FIELD_CONFIG => array(
40
\CRestUtil::EVENTS =>
UserField::getHandlers
(),
41
)
42
);
43
}
44
}
Bitrix\Main\DB\Connection\$host
$host
Definition
connection.php:29
Bitrix\Main\Rest\Handlers
Definition
handlers.php:13
Bitrix\Main\Rest\Handlers\onRestServiceBuildDescription
static onRestServiceBuildDescription()
Definition
handlers.php:20
Bitrix\Main\Rest\Handlers\SCOPE_USER
const SCOPE_USER
Definition
handlers.php:14
Bitrix\Main\Rest\Handlers\SCOPE_USER_CONSENT
const SCOPE_USER_CONSENT
Definition
handlers.php:15
Bitrix\Main\Rest\Handlers\SCOPE_USER_FIELD_CONFIG
const SCOPE_USER_FIELD_CONFIG
Definition
handlers.php:18
Bitrix\Main\Rest\Handlers\SCOPE_RATING
const SCOPE_RATING
Definition
handlers.php:16
Bitrix\Main\Rest\Handlers\SCOPE_SMILE
const SCOPE_SMILE
Definition
handlers.php:17
Bitrix\Main\Rest\UserField\getHandlers
static getHandlers()
Definition
userfield.php:18
Bitrix\Main\Rest
Definition
handlers.php:8
Bitrix\Main\UserConsent
Definition
agreement.php:8
modules
main
lib
rest
handlers.php
Создано системой
1.10.0