Beispiel #1
0
 /**
  * @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);
 }
Beispiel #2
0
 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;
 }
Beispiel #3
0
 /**
  * @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;
 }