Beispiel #1
0
 public function getFormDefination()
 {
     parent::init();
     $this->setAttrib('id', 'transaction')->setAttrib('class', 'top-element collapsable')->setMethod('post')->setIsArray(true);
     $form = array();
     $form['id'] = new Zend_Form_Element_Hidden('id');
     $form['ref'] = new Zend_Form_Element_Text('ref');
     $form['ref']->setLabel('Reference')->addfilters(array('StringTrim', 'StringToLower'))->setAttribs(array('class' => 'form-text'))->setValue($this->data['@ref'])->addDecorators(array(array('HtmlTag', array('tag' => 'div', 'class' => 'help transaction-ref', 'placement' => 'PREPEND'))));
     $this->addElements($form);
     return $this;
 }
Beispiel #2
0
 public function getFormDefination()
 {
     parent::init();
     return $this;
 }