[ Index ]
 

Code source de phpMyAdmin 2.10.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/libraries/ -> PMA_List_Database.class.php (sommaire)

holds the PMA_List_Database class

Poids: 519 lignes (18 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 1 fichier
 libraries/PMA_List.class.php

Définit 1 class

PMA_List_Database:: (12 méthodes):
  __construct()
  PMA_List_Database()
  _checkAccess()
  _checkHideDatabase()
  _retrieve()
  build()
  _checkOnlyDatabase()
  getDefault()
  getGroupedDetails()
  getHtmlListGrouped()
  getHtmlSelectGrouped()
  _checkAgainstPrivTables()


Classe: PMA_List_Database  - X-Ref

handles database lists

<code>
$PMA_List_Database = new PMA_List_Database($userlink, $controllink);
</code>

__construct($db_link_user = null, $db_link_control = null)   X-Ref
Constructor

param: mixed   $db_link_user       user database link resource|object
param: mixed   $db_link_control    control database link resource|object

PMA_List_Database($db_link_user = null, $db_link_control = null)   X-Ref
old PHP 4 style constructor


_checkAccess()   X-Ref
removes all databases not accessible by current user from list


_checkHideDatabase()   X-Ref
checks if the configuration wants to hide some databases


_retrieve($like_db_name = '')   X-Ref
retrieves database list from server

param: string  $like_db_name   usally a db_name containing wildcards

build()   X-Ref
builds up the list


_checkOnlyDatabase()   X-Ref
checks the only_db configuration

return: boolean false if there is no only_db, otherwise true

getDefault()   X-Ref
returns default item

return: string  default item

getGroupedDetails()   X-Ref
returns array with dbs grouped with extended infos

return: array   db list

getHtmlListGrouped($selected = '')   X-Ref
returns html code for list with dbs

return: string  html code list

getHtmlSelectGrouped($selected = '')   X-Ref
returns html code for select form element with dbs

return: string  html code select

_checkAgainstPrivTables()   X-Ref
this is just a backup, if all is fine this can be deleted later




Généré le : Mon Nov 26 15:18:20 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics