/**
  * the singleton pattern
  *
  * @return Sales_Controller_Product
  */
 public static function getInstance()
 {
     if (self::$_instance === NULL) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Пример #2
0
 /**
  * the singleton pattern
  *
  * @return Sales_Controller_Product
  */
 public static function getInstance()
 {
     if (self::$_instance === NULL) {
         self::$_instance = new Sales_Controller_Product();
     }
     return self::$_instance;
 }