本文整理匯總了PHP中DBFactory::InitDB方法的典型用法代碼示例。如果您正苦於以下問題:PHP DBFactory::InitDB方法的具體用法?PHP DBFactory::InitDB怎麽用?PHP DBFactory::InitDB使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DBFactory
的用法示例。
在下文中一共展示了DBFactory::InitDB方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Driver
function Driver()
{
global $HTTP_COOKIE_VARS;
$this->iDB = DBFactory::InitDB();
$this->iProjname = strtok(@$HTTP_COOKIE_VARS['ddda_project'], ':');
if ($this->iProjname != '') {
$this->iProjidx = strtok(':');
} else {
die('No project specified.');
}
}
示例2: DBDriver
function DBDriver($aProjname, $aFile)
{
$this->iDB = DBFactory::InitDB();
$this->iProjname = $aProjname;
parent::Driver($aFile);
}
示例3: DBCheckDriver
function DBCheckDriver($aProjidx)
{
$this->iDB = DBFactory::InitDB();
$this->iDBUtils = new DBUtils($this->iDB);
$this->iProjidx = $aProjidx;
}
示例4: DocEditDriver
function DocEditDriver()
{
global $HTTP_COOKIE_VARS;
$this->iDB = DBFactory::InitDB();
$this->iDBUtils = new DBUtils($this->iDB);
$this->iProjname = strtok(@$HTTP_COOKIE_VARS['ddda_project'], ':');
//echo "cookie=$this->iProjname <p>";
if ($this->iProjname != '') {
$this->iProjidx = strtok(':');
$this->iDBUtils->SetProject($this->iProjname);
}
}