1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
context.php
См. документацию.
1
<?
2
3
namespace
Bitrix\Main\Grid;
4
5
10
class
Context
11
{
15
protected
static
function
getRequest
()
16
{
17
return \Bitrix\Main\Context::getCurrent()->getRequest();
18
}
19
24
public
static
function
isInternalRequest
()
25
{
26
$request
= self::getRequest();
27
return
(
28
(
$request
->get(
"internal"
) ==
true
&&
$request
->get(
"grid_id"
)) ||
29
(
$request
->getPost(
"internal"
) ==
true
&&
$request
->getPost(
"grid_id"
))
30
);
31
}
32
37
public
static
function
isValidateRequest
()
38
{
39
return
static::isInternalRequest() &&
40
self::getRequest()->get(
"grid_action"
) ===
"validate"
;
41
}
42
48
public
static
function
isShowpageRequest
()
49
{
50
return
static::isInternalRequest() &&
51
self::getRequest()->get(
"grid_action"
) ===
"showpage"
;
52
}
53
}
$request
if(!Loader::includeModule('catalog')) if(!AccessController::getCurrent() ->check(ActionDictionary::ACTION_PRICE_EDIT)) if(!check_bitrix_sessid()) $request
Определения
catalog_reindex.php:36
Bitrix\Main\Grid\Context\isValidateRequest
static isValidateRequest()
Определения
context.php:37
Bitrix\Main\Grid\Context\isShowpageRequest
static isShowpageRequest()
Определения
context.php:48
Bitrix\Main\Grid\Context\getRequest
static getRequest()
Определения
context.php:15
Bitrix\Main\Grid\Context\isInternalRequest
static isInternalRequest()
Определения
context.php:24
Bitrix\Main\Context
Определения
culture.php:9
bitrix
modules
main
lib
grid
context.php
Создано системой
1.14.0