/** * @param null $value * @return void|Zend_Form_Element */ public function setValue($value = null) { if (!$value) { $path = $this->getPath(); if (empty($path)) { $this->setPath(); $path = $this->getPath(); } $value = $this->_getValue($path); } parent::setValue($value); }
protected function _required($text = ' - these fields are required') { $element = new Core_Form_Element_PlainText('required'); $element->setValue("<p class=\"required explain\">{$text}</p>"); $element->setDecorators(array('ViewHelper')); return $element; }
/** * @return Core_Form_Element_PlainText */ protected function _text2() { $element = new Core_Form_Element_PlainText('text2'); $element->setLabel(null)->setDecorators(array('ViewHelper'))->setValue('<label for="filter-column" class="span1">Search:</label>'); return $element; }