Translation update done using Pootle.
[phpmyadmin/crack.git] / libraries / PMA.php
blob4b391c2cc93ccc8d2f7262335629a7f81d6bcbe0
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 * @uses PMA::$databases
86 * @uses PMA::$userlink
87 * @uses PMA::$controllink
88 * @uses PMA_List_Database
89 * @return PMA_List_Databases
91 public function getDatabaseList()
93 if (null === $this->databases) {
94 $this->databases = new PMA_List_Database($this->userlink, $this->controllink);
97 return $this->databases;