| 1 | <?php |
||
| 8 | class GridViewRequest |
||
| 9 | { |
||
| 10 | use Configurable; |
||
| 11 | |||
| 12 | public $page; |
||
| 13 | |||
| 14 | public $sortColumn; |
||
| 15 | |||
| 16 | public $sortOrder; |
||
| 17 | |||
| 18 | public $filters = []; |
||
| 19 | |||
| 20 | private function __construct($config) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Allows to parse request information and making request instance |
||
| 27 | * @param int $gridId |
||
| 28 | * @return GridViewRequest |
||
| 29 | */ |
||
| 30 | public static function parse(int $gridId) |
||
| 41 | |||
| 42 | public function getFilterValue(string $name) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Should specify tests |
||
| 49 | * @return array |
||
| 50 | */ |
||
| 51 | protected function configTests(): array |
||
| 55 | } |