/** * Read settings * * @access private * */ private function read() { $all_settings = $this->settings->getAll(); $sets = array("radius_active" => "setActive", "radius_port" => "setPort", "radius_shared_secret" => "setSecret", "radius_name" => "setName", "radius_creation" => "enableCreation", "radius_migration" => "enableAccountMigration", "radius_charset" => "setCharset"); foreach ($sets as $s => $m) { if (isset($all_settings[$s])) { $this->{$m}($all_settings[$s]); } } reset($all_settings); foreach ($all_settings as $k => $v) { if (substr($k, 0, 13) == "radius_server") { $this->servers[] = $v; } } include_once './Services/AccessControl/classes/class.ilObjRole.php'; $roles = ilObjRole::_getRolesByAuthMode('radius'); $this->default_role = 0; if (isset($roles[0]) && $roles[0]) { $this->default_role = $roles[0]; } }