public function initForm()
    {
        $this->form = new \tao_helpers_form_xhtml_Form('export');

        $this->form->setDecorators(array(
            'element'			=> new \tao_helpers_form_xhtml_TagWrapper(array('tag' => 'div')),
            'group'				=> new \tao_helpers_form_xhtml_TagWrapper(array('tag' => 'div', 'cssClass' => 'form-group')),
            'error'				=> new \tao_helpers_form_xhtml_TagWrapper(array('tag' => 'div', 'cssClass' => 'form-error ui-state-error ui-corner-all')),
            'actions-bottom'	=> new \tao_helpers_form_xhtml_TagWrapper(array('tag' => 'div', 'cssClass' => 'form-toolbar')),
            'actions-top'		=> new \tao_helpers_form_xhtml_TagWrapper(array('tag' => 'div', 'cssClass' => 'form-toolbar'))
        ));

        $hiddenClassElt = \tao_helpers_form_FormFactory::getElement('xml_desc', 'Hidden');
        $hiddenClassElt->setValue(null);
        $this->form->addElement($hiddenClassElt);
        $hiddenClassElt = \tao_helpers_form_FormFactory::getElement('exportInstance', 'Hidden');
        $hiddenClassElt->setValue(null);
        $this->form->addElement($hiddenClassElt);

        $exportElt = \tao_helpers_form_FormFactory::getElement('export', 'Free');
        $exportElt->setValue('<a href="#" class="form-submitter btn-success small"><span class="icon-export"></span> ' .__('Export metadata').'</a>');
        $this->form->setActions(array($exportElt), 'bottom');

    }
public function initForm()
    {
        $this->form = new \tao_helpers_form_xhtml_Form('export');

        $this->form->setDecorators(array(
            'element'			=> new \tao_helpers_form_xhtml_TagWrapper(array('tag' => 'div')),
            'group'				=> new \tao_helpers_form_xhtml_TagWrapper(array('tag' => 'div', 'cssClass' => 'form-group')),
            'error'				=> new \tao_helpers_form_xhtml_TagWrapper(array('tag' => 'div', 'cssClass' => 'form-error ui-state-error ui-corner-all')),
            'actions-bottom'	=> new \tao_helpers_form_xhtml_TagWrapper(array('tag' => 'div', 'cssClass' => 'form-toolbar')),
            'actions-top'		=> new \tao_helpers_form_xhtml_TagWrapper(array('tag' => 'div', 'cssClass' => 'form-toolbar'))
        ));

        $hiddenClassElt = \tao_helpers_form_FormFactory::getElement('xml_desc', 'Hidden');
        $hiddenClassElt->setValue(null);
        $this->form->addElement($hiddenClassElt);
        $hiddenClassElt = \tao_helpers_form_FormFactory::getElement('exportInstance', 'Hidden');
        $hiddenClassElt->setValue(null);
        $this->form->addElement($hiddenClassElt);

        $exportElt = \tao_helpers_form_FormFactory::getElement('export', 'Free');
        $exportElt->setValue('<a href="#" class="form-submitter btn-success small"><span class="icon-export"></span> ' .__('Export metadata').'</a>');
        $this->form->setActions(array($exportElt), 'bottom');

    }
public function initForm ( ) { $ this -> form = new \ tao_helpers_form_xhtml_Form ( 'export' ) ; $ this -> form -> setDecorators ( array ( 'element' => new \ tao_helpers_form_xhtml_TagWrapper ( array ( 'tag' => 'div' ) ) , 'group' => new \ tao_helpers_form_xhtml_TagWrapper ( array ( 'tag' => 'div' , 'cssClass' => 'form-group' ) ) , 'error' => new \ tao_helpers_form_xhtml_TagWrapper ( array ( 'tag' => 'div' , 'cssClass' => 'form-error ui-state-error ui-corner-all' ) ) , 'actions-bottom' => new \ tao_helpers_form_xhtml_TagWrapper ( array ( 'tag' => 'div' , 'cssClass' => 'form-toolbar' ) ) , 'actions-top' => new \ tao_helpers_form_xhtml_TagWrapper ( array ( 'tag' => 'div' , 'cssClass' => 'form-toolbar' ) ) ) ) ; $ hiddenClassElt = \ tao_helpers_form_FormFactory :: getElement ( 'xml_desc' , 'Hidden' ) ; $ hiddenClassElt -> setValue ( null ) ; $ this -> form -> addElement ( $ hiddenClassElt ) ; $ hiddenClassElt = \ tao_helpers_form_FormFactory :: getElement ( 'exportInstance' , 'Hidden' ) ; $ hiddenClassElt -> setValue ( null ) ; $ this -> form -> addElement ( $ hiddenClassElt ) ; $ exportElt = \ tao_helpers_form_FormFactory :: getElement ( 'export' , 'Free' ) ; $ exportElt -> setValue ( '<a href="#" class="form-submitter btn-success small"><span class="icon-export"></span> ' . __ ( 'Export metadata' ) . '</a>' ) ; $ this -> form -> setActions ( array ( $ exportElt ) , 'bottom' ) ; }
Create a form

@throws \Exception
@throws \common_Exception
Create a form