Exemplo n.º 1
0
 /**
  * build all the data structures needed to build the form
  *
  * @return void
  * @access public
  */
 function preProcess()
 {
     $this->_batchId = CRM_Utils_Request::retrieve('id', 'Positive', $this, TRUE);
     $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'browse');
     if (empty($this->_batchInfo)) {
         $params = array('id' => $this->_batchId);
         CRM_Core_BAO_Batch::retrieve($params, $this->_batchInfo);
         $this->assign('batchTotal', $this->_batchInfo['total']);
         $this->assign('batchType', $this->_batchInfo['type_id']);
         // get the profile id associted with this batch type
         $this->_profileId = CRM_Core_BAO_Batch::getProfileId($this->_batchInfo['type_id']);
     }
 }