本文整理匯總了PHP中BaseController::getDbType方法的典型用法代碼示例。如果您正苦於以下問題:PHP BaseController::getDbType方法的具體用法?PHP BaseController::getDbType怎麽用?PHP BaseController::getDbType使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類BaseController
的用法示例。
在下文中一共展示了BaseController::getDbType方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
public function __construct(BaseController $controller)
{
// 配置文件中檢測安裝設置
$this->controller = $controller;
$this->installed = $controller->getAppConfig()->get('appinit', false);
$this->dbType = $controller->getDbType();
}
示例2: __construct
public function __construct(BaseController $controller)
{
$this->dbType = $controller->getDbType();
$this->tablePre = $controller->getTablePre();
if ($this->dbType == BaseController::DB_MYSQL) {
$this->conn = $controller->getConn();
} elseif ($this->dbType == BaseController::DB_REDIS) {
$this->redis = $controller->getRedis();
}
}
示例3: __construct
public function __construct(BaseController $controller)
{
$this->dbType = $controller->getDbType();
$this->tablePre = $controller->getTablePre();
$this->userImg = $controller->getAppConfig()->get('app_pub_context') . '/img/user_default.png';
if ($this->dbType == BaseController::DB_MYSQL) {
$this->conn = $controller->getConn();
} elseif ($this->dbType == BaseController::DB_REDIS) {
$this->redis = $controller->getRedis();
}
}
示例4: __construct
public function __construct(BaseController $controller)
{
$this->dbType = $controller->getDbType();
$this->tablePre = $controller->getTablePre();
$this->dictPath = $controller->getAppConfig()->get('mvc_static_path') . DIRECTORY_SEPARATOR . 'scws' . DIRECTORY_SEPARATOR . 'dict.utf8.xdb';
if ($this->dbType == BaseController::DB_MYSQL) {
$this->conn = $controller->getConn();
} elseif ($this->dbType == BaseController::DB_REDIS) {
$this->redis = $controller->getRedis();
}
}