Пример #1
0
 /**
  * Build the form object.
  */
 public function buildQuickForm()
 {
     // this mean it's a batch action
     if (!empty($this->_batchIds)) {
         $batchNames = CRM_Batch_BAO_Batch::getBatchNames($this->_batchIds);
         $this->assign('batchNames', $batchNames);
         // Skip building the form if we already have batches and an export format
         if ($this->_exportFormat) {
             $this->postProcess();
         }
     }
     $optionTypes = array('IIF' => ts('Export to IIF'), 'CSV' => ts('Export to CSV'));
     $this->addRadio('export_format', NULL, $optionTypes, NULL, '<br/>', TRUE);
     $this->addButtons(array(array('type' => 'next', 'name' => ts('Export Batch'), 'spacing' => '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;', 'isDefault' => TRUE), array('type' => 'cancel', 'name' => ts('Cancel'))));
 }