| @@ 211-233 (lines=23) @@ | ||
| 208 | * this list return by child class |
|
| 209 | * @return array return enable DBMS list in supported dbms list |
|
| 210 | */ |
|
| 211 | function getEnableList() |
|
| 212 | { |
|
| 213 | is_a($this, 'DB') ? $self = $this : $self = self::getInstance(); |
|
| 214 | ||
| 215 | if(!$self->supported_list) |
|
| 216 | { |
|
| 217 | $oDB = new DB(); |
|
| 218 | $self->supported_list = $oDB->_getSupportedList(); |
|
| 219 | } |
|
| 220 | ||
| 221 | $enableList = array(); |
|
| 222 | if(is_array($self->supported_list)) |
|
| 223 | { |
|
| 224 | foreach($self->supported_list AS $key => $value) |
|
| 225 | { |
|
| 226 | if($value->enable) |
|
| 227 | { |
|
| 228 | $enableList[] = $value; |
|
| 229 | } |
|
| 230 | } |
|
| 231 | } |
|
| 232 | return $enableList; |
|
| 233 | } |
|
| 234 | ||
| 235 | /** |
|
| 236 | * returns list of disable in supported dbms list |
|
| @@ 240-262 (lines=23) @@ | ||
| 237 | * this list return by child class |
|
| 238 | * @return array return disable DBMS list in supported dbms list |
|
| 239 | */ |
|
| 240 | function getDisableList() |
|
| 241 | { |
|
| 242 | is_a($this, 'DB') ? $self = $this : $self = self::getInstance(); |
|
| 243 | ||
| 244 | if(!$self->supported_list) |
|
| 245 | { |
|
| 246 | $oDB = new DB(); |
|
| 247 | $self->supported_list = $oDB->_getSupportedList(); |
|
| 248 | } |
|
| 249 | ||
| 250 | $disableList = array(); |
|
| 251 | if(is_array($self->supported_list)) |
|
| 252 | { |
|
| 253 | foreach($self->supported_list AS $key => $value) |
|
| 254 | { |
|
| 255 | if(!$value->enable) |
|
| 256 | { |
|
| 257 | $disableList[] = $value; |
|
| 258 | } |
|
| 259 | } |
|
| 260 | } |
|
| 261 | return $disableList; |
|
| 262 | } |
|
| 263 | ||
| 264 | /** |
|
| 265 | * returns list of supported dbms list |
|