class ListDatabase extends ListAbstract (View source)

handles database lists

$ListDatabase = new ListDatabase();

this object should be attached to the PMA_Server object

Properties

protected mixed $itemEmpty from  ListAbstract

Methods

mixed
getEmpty()

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

bool
exists(array ...$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

array
getList()

No description

string
getDefault()

returns default item

void
build()

builds up the list

__construct()

No description

void
checkHideDatabase()

checks if the configuration wants to hide some databases

array
retrieve(string $like_db_name = null)

retrieves database list from server

bool
checkOnlyDatabase()

checks the only_db configuration

Details

mixed getEmpty()

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

Return Value

mixed

an empty item

bool exists(array ...$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

array ...$params params

Return Value

bool

array getList()

No description

Return Value

array

string getDefault()

returns default item

Return Value

string

default item

void build()

builds up the list

Return Value

void

__construct()

No description

protected void checkHideDatabase()

checks if the configuration wants to hide some databases

Return Value

void

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

protected bool checkOnlyDatabase()

checks the only_db configuration

Return Value

bool