/** * Lists all available scopes. * * @return array The list of scopes stored in the backend. */ public function listScopes() { $query = 'SELECT ' . $this->_db->distinct('pref_scope') . ' FROM ' . $this->_params['table']; try { return $this->_db->selectValues($query); } catch (Horde_Db_Exception $e) { throw new Horde_Prefs_Exception($e); } }