public static function getConnect($Project, $Account, $Type) { //Get Ini Configuration self::$configuration = self::getApplicationIni($Project, $Account, $Type); //get Configuration $arrOptions = self::$configuration->toArray(); $strKeyDB = md5($Project . $Account . $Type); //Get storage instance if (!isset(self::$arrStorage[$strKeyDB]) || empty(self::$arrStorage[$strKeyDB])) { //Create object to Connect DB self::$arrStorage[$strKeyDB] = Zend_Db::factory($arrOptions['adapter'], $arrOptions['params']); //Changing the Fetch Mode self::$arrStorage[$strKeyDB]->setFetchMode(Zend_Db::FETCH_ASSOC); //Create Adapter default is Db_Table Zend_Db_Table::setDefaultAdapter(self::$arrStorage[$strKeyDB]); } //Return storage return self::$arrStorage[$strKeyDB]; }