Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
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
}
Bitrix\Main\Context
Definition
context.php:18
Bitrix\Main\Grid\Context\isValidateRequest
static isValidateRequest()
Definition
context.php:37
Bitrix\Main\Grid\Context\isShowpageRequest
static isShowpageRequest()
Definition
context.php:48
Bitrix\Main\Grid\Context\getRequest
static getRequest()
Definition
context.php:15
Bitrix\Main\Grid\Context\isInternalRequest
static isInternalRequest()
Definition
context.php:24
Bitrix\Main\Grid
modules
main
lib
grid
context.php
Создано системой
1.10.0