PHP Class PMA\libraries\ListDatabase

$ListDatabase = new ListDatabase($userlink);
Inheritance: extends PMA\libraries\ListAbstract
Show file Open project: phpmyadmin/phpmyadmin Class Usage Examples

Protected Properties

Property Type Description
$db_link database link resource|object to be used
$db_link_user user database link resource|object

Public Methods

Method Description
__construct ( mixed $db_link_user = null ) Constructor
build ( ) : void builds up the list
getDefault ( ) : string returns default item

Protected Methods

Method Description
checkHideDatabase ( ) : void checks if the configuration wants to hide some databases
checkOnlyDatabase ( ) : boolean checks the only_db configuration
retrieve ( string $like_db_name = null ) : array retrieves database list from server

Method Details

__construct() public method

Constructor
public __construct ( mixed $db_link_user = null )
$db_link_user mixed user database link resource|object

build() public method

builds up the list
public build ( ) : void
return void

checkHideDatabase() protected method

checks if the configuration wants to hide some databases
protected checkHideDatabase ( ) : void
return void

checkOnlyDatabase() protected method

checks the only_db configuration
protected checkOnlyDatabase ( ) : boolean
return boolean false if there is no only_db, otherwise true

getDefault() public method

returns default item
public getDefault ( ) : string
return string default item

retrieve() protected method

retrieves database list from server
protected retrieve ( string $like_db_name = null ) : array
$like_db_name string usually a db_name containing wildcards
return array

Property Details