public function __toString() { $values = $this->getUnfilteredValues(); if ($this instanceof Base_Form_Filter_Interface && !$this->isErrors() && !is_null($values['search']) && $this->_withAddFilter) { $this->submit(true, 'addfilter', 'Zapisz jako filtr', 'button1 wide'); } $csrfElement = $this->getHashElement(); if ($csrfElement !== null) { $this->getElement($csrfElement)->removeDecorator('HtmlTag')->removeDecorator('Label'); } return parent::__toString(); }