[ 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.class.php (sommaire)

hold the PMA_List base class

Poids: 154 lignes (4 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

PMA_List:: (8 méthodes):
  getFirst()
  getSingleItem()
  count()
  getEmpty()
  exists()
  getHtmlOptions()
  getDefault()
  build()


Classe: PMA_List  - X-Ref


getFirst()   X-Ref
returns first item from list

return: string  value of first item

getSingleItem()   X-Ref
returns item only if there is only one in the list

return: single item

count()   X-Ref
returns list item count

return: integer PMA_List::$items count

getEmpty()   X-Ref
defines what is an empty item (0, '', false or null)

return: mixed   an empty item

exists()   X-Ref
checks if the given db names exists in the current list, if there is
missing at least one item it reutrns false other wise true

param: string  $db_name,..     one or more mysql result resources
return: boolean true if all items exists, otheriwse false

getHtmlOptions($selected = '')   X-Ref
returns HTML <option>-tags to be used inside <select></select>

param: mixed   $selected   the selected db or true for selecting current db
return: string  HTML option tags

getDefault()   X-Ref
returns default item

return: string  default item

build()   X-Ref
builds up the list




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