1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
action.php
См. документацию.
1
<?php
8
namespace
Bitrix\Sender\Internals\QueryController
;
9
10
use
Bitrix\Main\ArgumentException
;
11
use
Bitrix\Main\HttpRequest
;
12
use
Bitrix\Main\Localization\Loc
;
13
14
15
Loc::loadMessages(__FILE__);
16
17
class
Action
extends
Base
18
{
20
protected
$name
;
21
23
protected
$contentType
;
24
26
protected
$handler
;
27
29
protected
$requestMethod
=
Listener::REQUEST_METHOD_POST
;
30
36
public
static
function
create
(
$name
)
37
{
38
return
new
static
(
$name
);
39
}
40
46
public
function
__construct
(
$name
,
$handler
=
null
)
47
{
48
$this->name =
$name
;
49
if
(
$handler
)
50
{
51
$this->
setHandler
(
$handler
);
52
}
53
}
54
60
public
function
getName
()
61
{
62
return
$this->name
;
63
}
64
72
public
function
setHandler
(
$handler
)
73
{
74
if
(!is_callable(
$handler
))
75
{
76
throw
new
ArgumentException
(
"Argument 'handler' should be callabe."
);
77
}
78
79
$this->handler =
$handler
;
80
return
$this;
81
}
82
88
public
function
getRequestMethod
()
89
{
90
return
$this->requestMethod
;
91
}
92
98
public
function
setRequestMethodGet
()
99
{
100
$this->requestMethod =
Listener::REQUEST_METHOD_GET
;
101
return
$this;
102
}
103
111
public
function
run
(
HttpRequest
$request
,
Response
$response
)
112
{
113
if
(!$this->handler)
114
{
115
return
;
116
}
117
118
static::call($this->handler,
array
(
$request
,
$response
));
119
}
120
}
$request
if(!Loader::includeModule('catalog')) if(!AccessController::getCurrent() ->check(ActionDictionary::ACTION_PRICE_EDIT)) if(!check_bitrix_sessid()) $request
Определения
catalog_reindex.php:36
Bitrix\Main\ArgumentException
Определения
ArgumentException.php:9
Bitrix\Main\HttpRequest
Определения
httprequest.php:20
Bitrix\Main\Localization\Loc
Определения
loc.php:12
Bitrix\Main\Response
Определения
response.php:5
Bitrix\Sender\Internals\QueryController\Action
Определения
action.php:18
Bitrix\Sender\Internals\QueryController\Action\__construct
__construct($name, $handler=null)
Определения
action.php:46
Bitrix\Sender\Internals\QueryController\Action\setRequestMethodGet
setRequestMethodGet()
Определения
action.php:98
Bitrix\Sender\Internals\QueryController\Action\$requestMethod
$requestMethod
Определения
action.php:29
Bitrix\Sender\Internals\QueryController\Action\getName
getName()
Определения
action.php:60
Bitrix\Sender\Internals\QueryController\Action\$handler
$handler
Определения
action.php:26
Bitrix\Sender\Internals\QueryController\Action\$name
$name
Определения
action.php:20
Bitrix\Sender\Internals\QueryController\Action\run
run(HttpRequest $request, Response $response)
Определения
action.php:111
Bitrix\Sender\Internals\QueryController\Action\$contentType
$contentType
Определения
action.php:23
Bitrix\Sender\Internals\QueryController\Action\create
static create($name)
Определения
action.php:36
Bitrix\Sender\Internals\QueryController\Action\setHandler
setHandler($handler)
Определения
action.php:72
Bitrix\Sender\Internals\QueryController\Action\getRequestMethod
getRequestMethod()
Определения
action.php:88
Bitrix\Sender\Internals\QueryController\Base
Определения
base.php:20
Bitrix\Sender\Internals\QueryController\Listener\REQUEST_METHOD_POST
const REQUEST_METHOD_POST
Определения
listener.php:21
Bitrix\Sender\Internals\QueryController\Listener\REQUEST_METHOD_GET
const REQUEST_METHOD_GET
Определения
listener.php:22
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Sender\Internals\QueryController
Определения
action.php:8
$response
$response
Определения
result.php:21
bitrix
modules
sender
lib
internals
querycontroller
action.php
Создано системой
1.14.0