Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
context.php
1<?
2
3namespace Bitrix\Main\Grid;
4
5
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}