Grido\Grid::applyFiltering PHP Method

applyFiltering() protected method

protected applyFiltering ( )
    protected function applyFiltering()
    {
        $conditions = $this->__getConditions($this->getActualFilter());
        $this->getModel()->filter($conditions);
    }

Usage Example

コード例 #1
0
ファイル: Grid.php プロジェクト: kysela-petr/generator-kysela
 protected function applyFiltering()
 {
     try {
         parent::applyFiltering();
     } catch (InvalidArgumentException $e) {
         $this->filter = [];
         $this->setDefaultFilter([]);
         if ($session = $this->getRememberSession()) {
             $session->remove();
         }
     }
 }