/** * * @param string $username * @return array */ public function checkExistingUsername($username) { return App_Main::getDbAdapter()->fetchRow("SELECT * FROM " . $this->tbl_user . " WHERE username = " . $this->_prepareValueForSave($username)); }
/** * Get the connection from the connection cache * * @param string $connectionName * @return Main_Mysql connection */ protected function _getConnection($connectionName) { if (isset($this->_connections[$connectionName])) { return $this->_connections[$connectionName]; } else { $this->_connections[$connectionName] = App_Main::getDbAdapter(); } return $this->_connections[$connectionName]; }