/** * the singleton pattern * * @return SoBilling_Controller_SoEvent */ public static function getInstance() { if (self::$_instance === NULL) { self::$_instance = new self(); } return self::$_instance; }
private function __construct() { $this->jobController = Billing_Controller_BatchJob::getInstance(); $this->modelName = 'Billing_Model_BatchJob'; $this->currentAccount = Tinebase_Core::getUser(); }
public function saveBatchJob($recordData) { $aTransmitt = array('id' => $recordData['id'], 'job_name1' => $recordData['job_name1'], 'job_name2' => $recordData['job_name2']); return $this->_save($aTransmitt, Billing_Controller_BatchJob::getInstance(), 'BatchJob'); }