本文整理汇总了PHP中BizSystem::getConfiguration方法的典型用法代码示例。如果您正苦于以下问题:PHP BizSystem::getConfiguration方法的具体用法?PHP BizSystem::getConfiguration怎么用?PHP BizSystem::getConfiguration使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BizSystem
的用法示例。
在下文中一共展示了BizSystem::getConfiguration方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _dumpDatabase
private function _dumpDatabase($filename, $dbname, $droptable)
{
$filename .= ".sql";
$filename = $this->folder . DIRECTORY_SEPARATOR . $filename;
$dbconfigList = BizSystem::getConfiguration()->getDatabaseInfo();
$dbconfig = $dbconfigList[$dbname];
if (strtolower($dbconfig["Driver"]) != 'pdo_mysql') {
return;
}
include_once dirname(dirname(__FILE__)) . "/lib/MySQLDump.class.php";
$backup = new MySQLDump();
if ($droptable == 1) {
$backup->droptableifexists = true;
} else {
$backup->droptableifexists = false;
}
if ($dbconfig["Port"]) {
$dbHost = $dbconfig["Server"] . ":" . $dbconfig["Port"];
} else {
$dbHost = $dbconfig["Port"];
}
$dbc = $backup->connect($dbHost, $dbconfig["User"], $dbconfig["Password"], $dbconfig["DBName"], $dbconfig["Charset"]);
if (!$dbc) {
echo $backup->mysql_error;
}
$backup->dump();
$data = $backup->output;
file_put_contents($filename, $data);
@chmod($filename, 0777);
return $filename;
}
示例2: getSimpleFromList
protected function getSimpleFromList(&$list, $selectFrom)
{
// in case of a|b|c
$dbconfig = BizSystem::getConfiguration()->getDatabaseInfo();
foreach ($dbconfig as $rec => $value) {
$list[$i]['val'] = $rec;
$list[$i]['txt'] = $rec;
$list[$i]['pic'] = $rec;
$i++;
}
}
示例3: setQuoteIdentifiers
/**
* set char to quote system identifiers
* @return void
*/
protected function setQuoteIdentifiers()
{
if ($this->m_QuoteIdentifiers == null) {
$this->m_QuoteIdentifiers = '';
$dbInfo = BizSystem::getConfiguration()->getDatabaseInfo($this->m_Database);
if (strtoupper($dbInfo["Driver"]) == "PDO_MYSQL") {
$this->m_QuoteIdentifiers = '`';
}
}
}