1. Check existence of mb_string, mysql and xml extensions before installation.
[openemr.git] / phpmyadmin / libraries / PMA.php
blobfb577caef93ed5a91d611ab7e53cb14994fc09ff
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * phpMyAdmin main Controller
6 * @package PhpMyAdmin
8 */
10 if (! defined('PHPMYADMIN')) {
11 exit;
14 /**
15 * Database listing.
17 require_once './libraries/List_Database.class.php';
19 /**
20 * phpMyAdmin main Controller
22 * @package PhpMyAdmin
24 * @property resource $userlink
25 * @property resource $controllink
27 class PMA
29 /**
30 * Holds database list
32 * @var PMA_List_Database
34 protected $databases = null;
36 /**
37 * DBMS user link
39 * @var resource
41 protected $userlink = null;
43 /**
44 * DBMS control link
46 * @var resource
48 protected $controllink = null;
50 /**
51 * magic access to protected/inaccessible members/properties
53 * @param string $param parameter name
55 * @return mixed
56 * @see http://php.net/language.oop5.overloading
58 public function __get($param)
60 switch ($param) {
61 case 'databases' :
62 return $this->getDatabaseList();
63 case 'userlink' :
64 return $this->userlink;
65 case 'controllink' :
66 return $this->controllink;
69 return null;
72 /**
73 * magic access to protected/inaccessible members/properties
75 * @param string $param parameter name
76 * @param mixed $value value to set
78 * @return void
79 * @see http://php.net/language.oop5.overloading
81 public function __set($param, $value)
83 switch ($param) {
84 case 'userlink' :
85 $this->userlink = $value;
86 break;
87 case 'controllink' :
88 $this->controllink = $value;
89 break;
93 /**
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(
102 $this->userlink
106 return $this->databases;