Example #1
0
 public static function getInstance()
 {
     if (!self::$productManager) {
         self::$productManager = new ProductManager();
         self::$productDataStore = new BeanDataStore(Product::$className, Product::$tableName);
         self::$productTagDataStore = new BeanDataStore(ProductTag::$className, ProductTag::$tableName);
         return self::$productManager;
     }
     return self::$offerManager;
 }