#19790379 added db check in enviroment

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8412 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-05-31 01:45:08 +00:00
parent 82ac064cff
commit 6e2fb02acd
13 changed files with 65 additions and 3 deletions

View file

@ -89,6 +89,48 @@
return $oDB->_getSupportedList();
}
/**
* @brief returns list of enable in supported db
* @return list of enable in supported db
**/
function getEnableList()
{
if(!$this->supported_list)
{
$oDB = new DB();
$this->supported_list = $oDB->_getSupportedList();
}
$enableList = array();
if(is_array($this->supported_list))
{
foreach($this->supported_list AS $key=>$value)
if($value->enable) array_push($enableList, $value);
}
return $enableList;
}
/**
* @brief returns list of disable in supported db
* @return list of disable in supported db
**/
function getDisableList()
{
if(!$this->supported_list)
{
$oDB = new DB();
$this->supported_list = $oDB->_getSupportedList();
}
$disableList = array();
if(is_array($this->supported_list))
{
foreach($this->supported_list AS $key=>$value)
if(!$value->enable) array_push($disableList, $value);
}
return $disableList;
}
/**
* @brief returns list of supported db
* @return list of supported db