class ListDatabase extends ListAbstract

handles database lists

$ListDatabase = new ListDatabase();

Properties

protected mixed $item_empty from ListAbstract

Methods

mixed
getEmpty()

defines what is an empty item (0, '', false or null)

bool
exists(mixed[] ...$params)

checks if the given db names exists in the current list, if there is missing at least one item it returns false otherwise true

string
getHtmlOptions(mixed $selected = '', boolean $include_information_schema = true)

returns HTML

string
getDefault()

returns default item

void
build()

builds up the list

__construct()

Constructor

void
checkHideDatabase()

checks if the configuration wants to hide some databases

array
retrieve(string $like_db_name = null)

retrieves database list from server

boolean
checkOnlyDatabase()

checks the only_db configuration

Details

in ListAbstract at line 33
mixed getEmpty()

defines what is an empty item (0, '', false or null)

Return Value

mixed an empty item

in ListAbstract at line 45
bool exists(mixed[] ...$params)

checks if the given db names exists in the current list, if there is missing at least one item it returns false otherwise true

Parameters

mixed[] ...$params params

Return Value

bool true if all items exists, otherwise false

in ListAbstract at line 65
string getHtmlOptions(mixed $selected = '', boolean $include_information_schema = true)

returns HTML

Parameters

mixed $selected the selected db or true for selecting current db
boolean $include_information_schema whether include information schema

Return Value

string HTML option tags

at line 168
string getDefault()

returns default item

Return Value

string default item

at line 115
void build()

builds up the list

Return Value

void

at line 31
__construct()

Constructor

at line 46
protected void checkHideDatabase()

checks if the configuration wants to hide some databases

Return Value

void

at line 66
protected array retrieve(string $like_db_name = null)

retrieves database list from server

Parameters

string $like_db_name usually a db_name containing wildcards

Return Value

array

at line 130
protected boolean checkOnlyDatabase()

checks the only_db configuration

Return Value

boolean false if there is no only_db, otherwise true