Beispiel #1
0
 /**
  * Returns an instance of class
  *
  * @return BOL_BillingProductDao
  */
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
Beispiel #2
0
 /**
  * Deactivates product
  * 
  * @param $productKey
  * @return boolean
  */
 public function deactivateProduct($productKey)
 {
     $product = $this->getProductByKey($productKey);
     if ($product) {
         $product->active = 0;
         $this->billingProductDao->save($product);
         return true;
     }
     return false;
 }