本文整理汇总了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);
}
}