ListDatabase
class ListDatabase extends ListAbstract (View source)
handles database lists
$ListDatabase = new ListDatabase();
Properties
protected mixed | $itemEmpty | from ListAbstract |
Methods
checks if the given db names exists in the current list, if there is missing at least one item it returns false otherwise true
returns default item
builds up the list
No description
checks if the configuration wants to hide some databases
retrieves database list from server
checks the only_db configuration
Details
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
protected void
checkHideDatabase()
checks if the configuration wants to hide some databases
protected array
retrieve(string $like_db_name = null)
retrieves database list from server
protected bool
checkOnlyDatabase()
checks the only_db configuration