本文整理汇总了PHP中parent::aFeatures方法的典型用法代码示例。如果您正苦于以下问题:PHP parent::aFeatures方法的具体用法?PHP parent::aFeatures怎么用?PHP parent::aFeatures使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类parent
的用法示例。
在下文中一共展示了parent::aFeatures方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
parent::$aFeatures = array('passCredentials' => true, 'getCredentials' => true, 'isAuthenticated' => true, 'getUser' => true, 'getUserId' => true, 'passNewPassword' => true, 'changePassword' => true, 'passNewPassword' => true, 'createUser' => true);
$this->DB = new CoreMySQLHandler();
// Open the MySQL database
if (!$this->DB->open(cfg('auth_mysql', 'dbhost'), cfg('auth_mysql', 'dbport'), cfg('auth_mysql', 'dbname'), cfg('auth_mysql', 'dbuser'), cfg('auth_mysql', 'dbpass'))) {
throw new NagVisException(l('Unable to open auth database'));
} else {
// Create initial db scheme if needed
if (!$this->DB->tableExist('users')) {
$this->DB->createInitialDb();
} else {
// Maybe an update is needed
$this->DB->updateDb();
}
}
}
示例2: __construct
public function __construct()
{
parent::$aFeatures = array('passCredentials' => true, 'getCredentials' => true, 'isAuthenticated' => true, 'getUser' => true, 'getUserId' => true, 'passNewPassword' => true, 'changePassword' => true, 'resetPassword' => true, 'createUser' => true);
$this->DB = new CoreSQLiteHandler();
// Open sqlite database
if (!$this->DB->open(cfg('paths', 'cfg') . 'auth.db')) {
throw new NagVisException(l('Unable to open auth database ([DB])', array('DB' => cfg('paths', 'cfg') . 'auth.db')));
} else {
// Create initial db scheme if needed
if (!$this->DB->tableExist('users')) {
$this->DB->createInitialDb();
} else {
// Maybe an update is needed
$this->DB->updateDb();
}
}
}