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