示例#1
0
 /**
  * Initialize instance
  *
  * @return Maged_Connect
  */
 public static function getInstance()
 {
     if (!self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
示例#2
0
 /**
  * Retrive object of Maged_Connect
  *
  * @return Maged_Connect
  */
 public function connect()
 {
     return Maged_Connect::getInstance();
 }