public function initFilter(Am_Grid_ReadOnly $grid) { if (empty($this->title)) { $this->title = ___("Filter"); } if (empty($this->buttonTitle)) { $this->buttonTitle = ___("Apply"); } $this->grid = $grid; $this->vars = array(); foreach ($this->varList as $k) { $this->vars[$k] = $this->grid->getRequest()->get($k); } if ($this->isFiltered()) { $this->applyFilter(); } }