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
24 * @property resource $userlink
25 * @property resource $controllink
32 * @var PMA_List_Database
34 protected $databases = null;
41 protected $userlink = null;
48 protected $controllink = null;
51 * magic access to protected/inaccessible members/properties
53 * @param string $param parameter name
56 * @see http://php.net/language.oop5.overloading
58 public function __get($param)
62 return $this->getDatabaseList();
64 return $this->userlink
;
66 return $this->controllink
;
73 * magic access to protected/inaccessible members/properties
75 * @param string $param parameter name
76 * @param mixed $value value to set
79 * @see http://php.net/language.oop5.overloading
81 public function __set($param, $value)
85 $this->userlink
= $value;
88 $this->controllink
= $value;
94 * Accessor to PMA::$databases
96 * @return PMA_List_Database
98 public function getDatabaseList()
100 if (null === $this->databases
) {
101 $this->databases
= new PMA_List_Database(
106 return $this->databases
;