Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
commonaction.php
1
<?php
8
namespace
Bitrix\Sender\Internals\CommonAjax
;
9
10
use
Bitrix\Main\Localization\Loc
;
11
use
Bitrix\Main\HttpRequest
;
12
13
use
Bitrix\Sender\Internals\QueryController
as
Controller
;
14
15
Loc::loadMessages
(__FILE__);
16
21
abstract
class
CommonAction
22
{
23
const
NAME
=
'unknown'
;
24
30
public
static
function
get
()
31
{
32
return
Controller\Action::create(static::NAME)->setHandler(array(get_called_class(),
'onRequest'
));
33
}
34
42
public
static
function
getRequestingUri
($controllerUri, array $parameters = array())
43
{
44
return
Controller\Manager::getActionRequestingUri(static::NAME, $parameters, $controllerUri);
45
}
46
53
public
static
function
onRequest
(
HttpRequest
$request,
Controller
\
Response
$response)
54
{
55
56
}
57
}
Bitrix\Main\HttpRequest
Definition
httprequest.php:20
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Main\Response
Definition
response.php:5
Bitrix\Sender\Internals\CommonAjax\CommonAction
Definition
commonaction.php:22
Bitrix\Sender\Internals\CommonAjax\CommonAction\NAME
const NAME
Definition
commonaction.php:23
Bitrix\Sender\Internals\CommonAjax\CommonAction\onRequest
static onRequest(HttpRequest $request, Controller\Response $response)
Definition
commonaction.php:53
Bitrix\Sender\Internals\CommonAjax\CommonAction\getRequestingUri
static getRequestingUri($controllerUri, array $parameters=array())
Definition
commonaction.php:42
Bitrix\Sender\Internals\CommonAjax
Definition
actiongettemplate.php:8
Bitrix\Sender\Internals\QueryController
Definition
action.php:8
modules
sender
lib
internals
commonajax
commonaction.php
Создано системой
1.10.0