/** * the singleton pattern * * @return SoEventManager_Controller_SoEvent */ public static function getInstance() { if (self::$_instance === NULL) { self::$_instance = new self(); } return self::$_instance; }
/** * the constructor * * don't use the constructor. use the singleton */ private function __construct() { $this->_applicationName = 'Billing'; $this->_receiptController = Billing_Controller_Receipt::getInstance(); $this->_supplyReceiptController = Billing_Controller_SupplyReceipt::getInstance(); $this->_currentAccount = Tinebase_Core::getUser(); $this->_doContainerACLChecks = FALSE; }
public function saveSupplyReceipt($recordData) { return $this->_save($recordData, Billing_Controller_SupplyReceipt::getInstance(), 'SupplyReceipt'); }