本文整理匯總了PHP中ilObjRole::_resetAuthMode方法的典型用法代碼示例。如果您正苦於以下問題:PHP ilObjRole::_resetAuthMode方法的具體用法?PHP ilObjRole::_resetAuthMode怎麽用?PHP ilObjRole::_resetAuthMode使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ilObjRole
的用法示例。
在下文中一共展示了ilObjRole::_resetAuthMode方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: save
/**
* Save settings
*
* @access public
*
*/
public function save()
{
// first delete old servers
$this->settings->deleteLike('radius_server%');
$this->settings->set('radius_active', $this->isActive() ? 1 : 0);
$this->settings->set('radius_port', $this->getPort());
$this->settings->set('radius_shared_secret', $this->getSecret());
$this->settings->set('radius_name', $this->getName());
$this->settings->set('radius_creation', $this->enabledCreation() ? 1 : 0);
$this->settings->set('radius_migration', $this->isAccountMigrationEnabled() ? 1 : 0);
$this->settings->set('radius_charset', $this->getCharset() ? 1 : 0);
$counter = 0;
foreach ($this->getServers() as $server) {
if (++$counter == 1) {
$this->settings->set('radius_server', trim($server));
} else {
$this->settings->set('radius_server' . $counter, trim($server));
}
}
include_once './Services/AccessControl/classes/class.ilObjRole.php';
ilObjRole::_resetAuthMode('radius');
if ($this->getDefaultRole()) {
ilObjRole::_updateAuthMode(array($this->getDefaultRole() => 'radius'));
}
return true;
}