ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
Shibboleth role assignment rule. More...
Public Member Functions | |
__construct (int $a_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 | $rule_id |
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 |
Shibboleth role assignment rule.
Definition at line 25 of file class.ilShibbolethRoleAssignmentRule.php.
ilShibbolethRoleAssignmentRule::__construct | ( | int | $a_rule_id = 0 | ) |
Definition at line 43 of file class.ilShibbolethRoleAssignmentRule.php.
References $DIC, $ilDB, and read().
ilShibbolethRoleAssignmentRule::add | ( | ) |
Definition at line 173 of file class.ilShibbolethRoleAssignmentRule.php.
References $query, getName(), getPluginId(), getRoleId(), getValue(), isAddOnUpdateEnabled(), isPluginActive(), isRemoveOnUpdateEnabled(), and setRuleId().
ilShibbolethRoleAssignmentRule::conditionToString | ( | ) |
Definition at line 132 of file class.ilShibbolethRoleAssignmentRule.php.
References $DIC, $lng, getName(), getPluginId(), getValue(), and isPluginActive().
Referenced by ilAuthShibbolethSettingsGUI\confirmDeleteRules().
ilShibbolethRoleAssignmentRule::delete | ( | ) |
Definition at line 162 of file class.ilShibbolethRoleAssignmentRule.php.
References $query, and getRuleId().
Referenced by ilAuthShibbolethSettingsGUI\deleteRules().
ilShibbolethRoleAssignmentRule::doesMatch | ( | array | $a_data | ) |
Definition at line 241 of file class.ilShibbolethRoleAssignmentRule.php.
References ilShibbolethRoleAssignmentRules\callPlugin(), getName(), getPluginId(), getValue(), and isPluginActive().
ilShibbolethRoleAssignmentRule::enableAddOnUpdate | ( | bool | $a_status | ) |
Definition at line 102 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::enablePlugin | ( | bool | $a_status | ) |
Definition at line 92 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::enableRemoveOnUpdate | ( | bool | $a_status | ) |
Definition at line 112 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::getName | ( | ) |
Definition at line 77 of file class.ilShibbolethRoleAssignmentRule.php.
References $attribute_name.
Referenced by add(), conditionToString(), doesMatch(), ilAuthShibbolethSettingsGUI\getRuleValues(), matches(), update(), and validate().
ilShibbolethRoleAssignmentRule::getPluginId | ( | ) |
Definition at line 127 of file class.ilShibbolethRoleAssignmentRule.php.
References $plugin_id.
Referenced by add(), conditionToString(), doesMatch(), ilAuthShibbolethSettingsGUI\getRuleValues(), matches(), update(), and validate().
ilShibbolethRoleAssignmentRule::getRoleId | ( | ) |
Definition at line 67 of file class.ilShibbolethRoleAssignmentRule.php.
References $role_id.
Referenced by add(), ilAuthShibbolethSettingsGUI\confirmDeleteRules(), ilAuthShibbolethSettingsGUI\getRuleValues(), update(), and validate().
ilShibbolethRoleAssignmentRule::getRuleId | ( | ) |
Definition at line 57 of file class.ilShibbolethRoleAssignmentRule.php.
References $rule_id.
Referenced by delete(), read(), and update().
ilShibbolethRoleAssignmentRule::getValue | ( | ) |
Definition at line 87 of file class.ilShibbolethRoleAssignmentRule.php.
References $attribute_value.
Referenced by add(), conditionToString(), doesMatch(), ilAuthShibbolethSettingsGUI\getRuleValues(), matches(), update(), and validate().
ilShibbolethRoleAssignmentRule::isAddOnUpdateEnabled | ( | ) |
Definition at line 107 of file class.ilShibbolethRoleAssignmentRule.php.
References $add_on_update.
Referenced by add(), ilAuthShibbolethSettingsGUI\getRuleValues(), and update().
ilShibbolethRoleAssignmentRule::isPluginActive | ( | ) |
Definition at line 97 of file class.ilShibbolethRoleAssignmentRule.php.
References $plugin_active.
Referenced by add(), conditionToString(), doesMatch(), ilAuthShibbolethSettingsGUI\getRuleValues(), matches(), update(), and validate().
ilShibbolethRoleAssignmentRule::isRemoveOnUpdateEnabled | ( | ) |
Definition at line 117 of file class.ilShibbolethRoleAssignmentRule.php.
References $remove_on_update.
Referenced by add(), ilAuthShibbolethSettingsGUI\getRuleValues(), and update().
ilShibbolethRoleAssignmentRule::matches | ( | array | $a_data | ) |
Definition at line 214 of file class.ilShibbolethRoleAssignmentRule.php.
References ilShibbolethRoleAssignmentRules\callPlugin(), getName(), getPluginId(), getValue(), isPluginActive(), and wildcardCompare().
|
private |
Definition at line 261 of file class.ilShibbolethRoleAssignmentRule.php.
References $query, $res, enableAddOnUpdate(), enablePlugin(), enableRemoveOnUpdate(), ilDBConstants\FETCHMODE_OBJECT, getRuleId(), setName(), setPluginId(), setRoleId(), and setValue().
Referenced by __construct().
ilShibbolethRoleAssignmentRule::setName | ( | string | $a_name | ) |
Definition at line 72 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::setPluginId | ( | ?string | $a_id | ) |
Definition at line 122 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::setRoleId | ( | int | $a_id | ) |
Definition at line 62 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::setRuleId | ( | int | $a_id | ) |
Definition at line 52 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by add().
ilShibbolethRoleAssignmentRule::setValue | ( | string | $a_value | ) |
Definition at line 82 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::update | ( | ) |
Definition at line 191 of file class.ilShibbolethRoleAssignmentRule.php.
References $query, getName(), getPluginId(), getRoleId(), getRuleId(), getValue(), isAddOnUpdateEnabled(), isPluginActive(), and isRemoveOnUpdateEnabled().
ilShibbolethRoleAssignmentRule::validate | ( | ) |
Definition at line 143 of file class.ilShibbolethRoleAssignmentRule.php.
References getName(), getPluginId(), getRoleId(), getValue(), and isPluginActive().
|
protected |
Definition at line 234 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by matches().
|
private |
Definition at line 39 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by isAddOnUpdateEnabled().
|
private |
Definition at line 36 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by getName().
|
private |
Definition at line 37 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by getValue().
|
private |
Definition at line 33 of file class.ilShibbolethRoleAssignmentRule.php.
|
private |
Definition at line 38 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by isPluginActive().
|
private |
Definition at line 41 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by getPluginId().
|
private |
Definition at line 40 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by isRemoveOnUpdateEnabled().
|
private |
Definition at line 35 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by getRoleId().
|
private |
Definition at line 34 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by getRuleId().
|
private |
Definition at line 27 of file class.ilShibbolethRoleAssignmentRule.php.
|
private |
Definition at line 30 of file class.ilShibbolethRoleAssignmentRule.php.
|
private |
Definition at line 29 of file class.ilShibbolethRoleAssignmentRule.php.
|
private |
Definition at line 28 of file class.ilShibbolethRoleAssignmentRule.php.
|
private |
Definition at line 31 of file class.ilShibbolethRoleAssignmentRule.php.