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