abstract class ListAbstract extends ArrayObject

Generic list class

Properties

protected mixed $item_empty

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

Details

at line 33
mixed getEmpty()

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

Return Value

mixed an empty item

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

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 95
string getDefault()

returns default item

Return Value

string default item

at line 105
abstract void build()

builds up the list

Return Value

void