2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * phpMyAdmin main Controller
10 if (! defined('PHPMYADMIN')) {
17 require_once './libraries/List_Database.class.php';
20 * phpMyAdmin main Controller
23 * @property resource $userlink
24 * @property resource $controllink
31 * @var PMA_List_Database
33 protected $databases = null;
40 protected $userlink = null;
47 protected $controllink = null;
50 * magic access to protected/inaccessible members/properties
52 * @param string $param parameter name
55 * @see http://php.net/language.oop5.overloading
57 public function __get($param)
61 return $this->getDatabaseList();
64 return $this->userlink
;
67 return $this->controllink
;
75 * magic access to protected/inaccessible members/properties
77 * @param string $param parameter name
78 * @param mixed $value value to set
81 * @see http://php.net/language.oop5.overloading
83 public function __set($param, $value)
87 $this->userlink
= $value;
90 $this->controllink
= $value;
96 * Accessor to PMA::$databases
98 * @return PMA_List_Databases
100 public function getDatabaseList()
102 if (null === $this->databases
) {
103 $this->databases
= new PMA_List_Database(
108 return $this->databases
;