ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (private int $rule_id=0) | |
setRuleId (int $a_id) | |
getRuleId () | |
setRoleId (int $a_id) | |
getRoleId () | |
setName (string $a_name) | |
getName () | |
setValue (string $a_value) | |
getValue () | |
enablePlugin (bool $a_status) | |
isPluginActive () | |
enableAddOnUpdate (bool $a_status) | |
isAddOnUpdateEnabled () | |
enableRemoveOnUpdate (bool $a_status) | |
isRemoveOnUpdateEnabled () | |
setPluginId (?string $a_id) | |
getPluginId () | |
conditionToString () | |
validate () | |
delete () | |
add () | |
update () | |
matches (array $a_data) | |
doesMatch (array $a_data) | |
Protected Member Functions | |
wildcardCompare (string $a_str1, string $a_str2) | |
Private Member Functions | |
read () | |
Private Attributes | |
const | ERR_MISSING_NAME = 'shib_missing_attr_name' |
const | ERR_MISSING_VALUE = 'shib_missing_attr_value' |
const | ERR_MISSING_ROLE = 'shib_missing_role' |
const | ERR_MISSING_PLUGIN_ID = 'shib_missing_plugin_id' |
const | TABLE_NAME = 'shib_role_assignment' |
ilDBInterface | $db |
int | $role_id = 0 |
string | $attribute_name = '' |
string | $attribute_value = '' |
bool | $plugin_active = false |
bool | $add_on_update = false |
bool | $remove_on_update = false |
string | $plugin_id = null |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Shibboleth role assignment rule
Definition at line 29 of file class.ilShibbolethRoleAssignmentRule.php.
ilShibbolethRoleAssignmentRule::__construct | ( | private int | $rule_id = 0 | ) |
Definition at line 61 of file class.ilShibbolethRoleAssignmentRule.php.
ilShibbolethRoleAssignmentRule::add | ( | ) |
Definition at line 189 of file class.ilShibbolethRoleAssignmentRule.php.
References getName(), getPluginId(), getRoleId(), getValue(), isAddOnUpdateEnabled(), isPluginActive(), isRemoveOnUpdateEnabled(), and setRuleId().
ilShibbolethRoleAssignmentRule::conditionToString | ( | ) |
Definition at line 148 of file class.ilShibbolethRoleAssignmentRule.php.
References $DIC, $lng, getName(), getPluginId(), getValue(), and isPluginActive().
Referenced by ilAuthShibbolethSettingsGUI\confirmDeleteRules().
ilShibbolethRoleAssignmentRule::delete | ( | ) |
Definition at line 178 of file class.ilShibbolethRoleAssignmentRule.php.
References getRuleId().
Referenced by ilAuthShibbolethSettingsGUI\deleteRules().
ilShibbolethRoleAssignmentRule::doesMatch | ( | array | $a_data | ) |
Definition at line 257 of file class.ilShibbolethRoleAssignmentRule.php.
References ilShibbolethRoleAssignmentRules\callPlugin(), getName(), getPluginId(), getValue(), and isPluginActive().
ilShibbolethRoleAssignmentRule::enableAddOnUpdate | ( | bool | $a_status | ) |
Definition at line 118 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::enablePlugin | ( | bool | $a_status | ) |
Definition at line 108 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::enableRemoveOnUpdate | ( | bool | $a_status | ) |
Definition at line 128 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::getName | ( | ) |
Definition at line 93 of file class.ilShibbolethRoleAssignmentRule.php.
References $attribute_name.
Referenced by add(), conditionToString(), doesMatch(), ilAuthShibbolethSettingsGUI\getRuleValues(), matches(), update(), and validate().
ilShibbolethRoleAssignmentRule::getPluginId | ( | ) |
Definition at line 143 of file class.ilShibbolethRoleAssignmentRule.php.
References $plugin_id.
Referenced by add(), conditionToString(), doesMatch(), ilAuthShibbolethSettingsGUI\getRuleValues(), matches(), update(), and validate().
ilShibbolethRoleAssignmentRule::getRoleId | ( | ) |
Definition at line 83 of file class.ilShibbolethRoleAssignmentRule.php.
References $role_id.
Referenced by add(), ilAuthShibbolethSettingsGUI\confirmDeleteRules(), ilAuthShibbolethSettingsGUI\getRuleValues(), update(), and validate().
ilShibbolethRoleAssignmentRule::getRuleId | ( | ) |
Definition at line 73 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by delete(), read(), and update().
ilShibbolethRoleAssignmentRule::getValue | ( | ) |
Definition at line 103 of file class.ilShibbolethRoleAssignmentRule.php.
References $attribute_value.
Referenced by add(), conditionToString(), doesMatch(), ilAuthShibbolethSettingsGUI\getRuleValues(), matches(), update(), and validate().
ilShibbolethRoleAssignmentRule::isAddOnUpdateEnabled | ( | ) |
Definition at line 123 of file class.ilShibbolethRoleAssignmentRule.php.
References $add_on_update.
Referenced by add(), ilAuthShibbolethSettingsGUI\getRuleValues(), and update().
ilShibbolethRoleAssignmentRule::isPluginActive | ( | ) |
Definition at line 113 of file class.ilShibbolethRoleAssignmentRule.php.
References $plugin_active.
Referenced by add(), conditionToString(), doesMatch(), ilAuthShibbolethSettingsGUI\getRuleValues(), matches(), update(), and validate().
ilShibbolethRoleAssignmentRule::isRemoveOnUpdateEnabled | ( | ) |
Definition at line 133 of file class.ilShibbolethRoleAssignmentRule.php.
References $remove_on_update.
Referenced by add(), ilAuthShibbolethSettingsGUI\getRuleValues(), and update().
ilShibbolethRoleAssignmentRule::matches | ( | array | $a_data | ) |
Definition at line 230 of file class.ilShibbolethRoleAssignmentRule.php.
References ilShibbolethRoleAssignmentRules\callPlugin(), getName(), getPluginId(), getValue(), isPluginActive(), and wildcardCompare().
|
private |
Definition at line 277 of file class.ilShibbolethRoleAssignmentRule.php.
References $res, enableAddOnUpdate(), enablePlugin(), enableRemoveOnUpdate(), ilDBConstants\FETCHMODE_OBJECT, getRuleId(), setName(), setPluginId(), setRoleId(), and setValue().
Referenced by __construct().
ilShibbolethRoleAssignmentRule::setName | ( | string | $a_name | ) |
Definition at line 88 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::setPluginId | ( | ?string | $a_id | ) |
Definition at line 138 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::setRoleId | ( | int | $a_id | ) |
Definition at line 78 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::setRuleId | ( | int | $a_id | ) |
Definition at line 68 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by add().
ilShibbolethRoleAssignmentRule::setValue | ( | string | $a_value | ) |
Definition at line 98 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::update | ( | ) |
Definition at line 207 of file class.ilShibbolethRoleAssignmentRule.php.
References getName(), getPluginId(), getRoleId(), getRuleId(), getValue(), isAddOnUpdateEnabled(), isPluginActive(), and isRemoveOnUpdateEnabled().
ilShibbolethRoleAssignmentRule::validate | ( | ) |
Definition at line 159 of file class.ilShibbolethRoleAssignmentRule.php.
References ERR_MISSING_NAME, ERR_MISSING_PLUGIN_ID, ERR_MISSING_ROLE, ERR_MISSING_VALUE, getName(), getPluginId(), getRoleId(), getValue(), and isPluginActive().
|
protected |
Definition at line 250 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by matches().
|
private |
Definition at line 57 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by isAddOnUpdateEnabled().
|
private |
Definition at line 54 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by getName().
|
private |
Definition at line 55 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by getValue().
|
private |
Definition at line 52 of file class.ilShibbolethRoleAssignmentRule.php.
|
private |
Definition at line 56 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by isPluginActive().
|
private |
Definition at line 59 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by getPluginId().
|
private |
Definition at line 58 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by isRemoveOnUpdateEnabled().
|
private |
Definition at line 53 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by getRoleId().
|
private |
Definition at line 34 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by validate().
|
private |
Definition at line 46 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by validate().
|
private |
Definition at line 42 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by validate().
|
private |
Definition at line 38 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by validate().
|
private |
Definition at line 50 of file class.ilShibbolethRoleAssignmentRule.php.