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/sender/lib/internals/commonajax/ |
Upload File : |
<?php /** * Bitrix Framework * @package bitrix * @subpackage sender * @copyright 2001-2012 Bitrix */ namespace Bitrix\Sender\Internals\CommonAjax; use Bitrix\Main\Localization\Loc; use Bitrix\Main\HttpRequest; use Bitrix\Sender\Internals\QueryController as Controller; Loc::loadMessages(__FILE__); /** * Class ActionGetTemplate * @package Bitrix\Sender\Internals\CommonAjax */ abstract class CommonAction { const NAME = 'unknown'; /** * Get action instance. * * @return Controller\Action */ public static function get() { return Controller\Action::create(static::NAME)->setHandler(array(get_called_class(), 'onRequest')); } /** * Get action requesting uri. * * @param string $controllerUri Controller uri. * @param array $parameters Parameters. * @return string */ public static function getRequestingUri($controllerUri, array $parameters = array()) { return Controller\Manager::getActionRequestingUri(static::NAME, $parameters, $controllerUri); } /** * On request event handler. * * @param HttpRequest $request Request. * @param Controller\Response $response Response. */ public static function onRequest(HttpRequest $request, Controller\Response $response) { } }