Refresh .po files
[phpmyadmin/madhuracj.git] / libraries / PMA.php
blob4f148b7df4e23a333a4f7d207434ba50ad72c9ee
1 <?php
2 /**
3 * Enter description here...
4 * @package phpMyAdmin
6 */
8 /**
9 * Database listing.
11 require_once './libraries/List_Database.class.php';
13 /**
14 * phpMyAdmin main Controller
18 * @package phpMyAdmin
20 class PMA
22 /**
23 * Holds database list
25 * @var PMA_List_Database
27 protected $databases = null;
29 /**
30 * DBMS user link
32 * @var resource
34 protected $userlink = null;
36 /**
37 * DBMS control link
39 * @var resource
41 protected $controllink = null;
43 /**
44 * magic access to protected/inaccessible members/properties
46 * @see http://php.net/language.oop5.overloading
48 public function __get($param)
50 switch ($param) {
51 case 'databases' :
52 return $this->getDatabaseList();
53 break;
54 case 'userlink' :
55 return $this->userlink;
56 break;
57 case 'controllink' :
58 return $this->controllink;
59 break;
62 return null;
65 /**
66 * magic access to protected/inaccessible members/properties
68 * @see http://php.net/language.oop5.overloading
70 public function __set($param, $value)
72 switch ($param) {
73 case 'userlink' :
74 $this->userlink = $value;
75 break;
76 case 'controllink' :
77 $this->controllink = $value;
78 break;
82 /**
83 * Accessor to PMA::$databases
85 * @return PMA_List_Databases
87 public function getDatabaseList()
89 if (null === $this->databases) {
90 $this->databases = new PMA_List_Database($this->userlink, $this->controllink);
93 return $this->databases;