Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
handlers.php
1<?php
9
11
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}
static onRestServiceBuildDescription()
Definition handlers.php:20