Example #1
0
 /**
  * the singleton pattern
  *
  * @return SoEventManager_Controller_SoEvent
  */
 public static function getInstance()
 {
     if (self::$_instance === NULL) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Example #2
0
 /**
  * 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;
 }
Example #3
0
 public function saveSupplyReceipt($recordData)
 {
     return $this->_save($recordData, Billing_Controller_SupplyReceipt::getInstance(), 'SupplyReceipt');
 }