ILIAS
trunk Revision v11.0_alpha-1851-ga8564da6fed
|
Shibboleth role assignment rule. 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 |
Shibboleth role assignment rule.
Definition at line 12 of file class.ilShibbolethRoleAssignmentRule.php.
ilShibbolethRoleAssignmentRule::__construct | ( | private int | $rule_id = 0 | ) |
Definition at line 44 of file class.ilShibbolethRoleAssignmentRule.php.
ilShibbolethRoleAssignmentRule::add | ( | ) |
Definition at line 172 of file class.ilShibbolethRoleAssignmentRule.php.
References getName(), getPluginId(), getRoleId(), getValue(), isAddOnUpdateEnabled(), isPluginActive(), isRemoveOnUpdateEnabled(), and setRuleId().
ilShibbolethRoleAssignmentRule::conditionToString | ( | ) |
Definition at line 131 of file class.ilShibbolethRoleAssignmentRule.php.
References $DIC, $lng, getName(), getPluginId(), getValue(), and isPluginActive().
Referenced by ilAuthShibbolethSettingsGUI\confirmDeleteRules().
ilShibbolethRoleAssignmentRule::delete | ( | ) |
Definition at line 161 of file class.ilShibbolethRoleAssignmentRule.php.
References getRuleId().
Referenced by ilAuthShibbolethSettingsGUI\deleteRules().
ilShibbolethRoleAssignmentRule::doesMatch | ( | array | $a_data | ) |
Definition at line 240 of file class.ilShibbolethRoleAssignmentRule.php.
References ilShibbolethRoleAssignmentRules\callPlugin(), getName(), getPluginId(), getValue(), and isPluginActive().
ilShibbolethRoleAssignmentRule::enableAddOnUpdate | ( | bool | $a_status | ) |
Definition at line 101 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::enablePlugin | ( | bool | $a_status | ) |
Definition at line 91 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::enableRemoveOnUpdate | ( | bool | $a_status | ) |
Definition at line 111 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::getName | ( | ) |
Definition at line 76 of file class.ilShibbolethRoleAssignmentRule.php.
References $attribute_name.
Referenced by add(), conditionToString(), doesMatch(), ilAuthShibbolethSettingsGUI\getRuleValues(), matches(), update(), and validate().
ilShibbolethRoleAssignmentRule::getPluginId | ( | ) |
Definition at line 126 of file class.ilShibbolethRoleAssignmentRule.php.
References $plugin_id.
Referenced by add(), conditionToString(), doesMatch(), ilAuthShibbolethSettingsGUI\getRuleValues(), matches(), update(), and validate().
ilShibbolethRoleAssignmentRule::getRoleId | ( | ) |
Definition at line 66 of file class.ilShibbolethRoleAssignmentRule.php.
References $role_id.
Referenced by add(), ilAuthShibbolethSettingsGUI\confirmDeleteRules(), ilAuthShibbolethSettingsGUI\getRuleValues(), update(), and validate().
ilShibbolethRoleAssignmentRule::getRuleId | ( | ) |
Definition at line 56 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by delete(), read(), and update().
ilShibbolethRoleAssignmentRule::getValue | ( | ) |
Definition at line 86 of file class.ilShibbolethRoleAssignmentRule.php.
References $attribute_value.
Referenced by add(), conditionToString(), doesMatch(), ilAuthShibbolethSettingsGUI\getRuleValues(), matches(), update(), and validate().
ilShibbolethRoleAssignmentRule::isAddOnUpdateEnabled | ( | ) |
Definition at line 106 of file class.ilShibbolethRoleAssignmentRule.php.
References $add_on_update.
Referenced by add(), ilAuthShibbolethSettingsGUI\getRuleValues(), and update().
ilShibbolethRoleAssignmentRule::isPluginActive | ( | ) |
Definition at line 96 of file class.ilShibbolethRoleAssignmentRule.php.
References $plugin_active.
Referenced by add(), conditionToString(), doesMatch(), ilAuthShibbolethSettingsGUI\getRuleValues(), matches(), update(), and validate().
ilShibbolethRoleAssignmentRule::isRemoveOnUpdateEnabled | ( | ) |
Definition at line 116 of file class.ilShibbolethRoleAssignmentRule.php.
References $remove_on_update.
Referenced by add(), ilAuthShibbolethSettingsGUI\getRuleValues(), and update().
ilShibbolethRoleAssignmentRule::matches | ( | array | $a_data | ) |
Definition at line 213 of file class.ilShibbolethRoleAssignmentRule.php.
References ilShibbolethRoleAssignmentRules\callPlugin(), getName(), getPluginId(), getValue(), isPluginActive(), and wildcardCompare().
|
private |
Definition at line 260 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 71 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::setPluginId | ( | ?string | $a_id | ) |
Definition at line 121 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::setRoleId | ( | int | $a_id | ) |
Definition at line 61 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::setRuleId | ( | int | $a_id | ) |
Definition at line 51 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by add().
ilShibbolethRoleAssignmentRule::setValue | ( | string | $a_value | ) |
Definition at line 81 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::update | ( | ) |
Definition at line 190 of file class.ilShibbolethRoleAssignmentRule.php.
References getName(), getPluginId(), getRoleId(), getRuleId(), getValue(), isAddOnUpdateEnabled(), isPluginActive(), and isRemoveOnUpdateEnabled().
ilShibbolethRoleAssignmentRule::validate | ( | ) |
Definition at line 142 of file class.ilShibbolethRoleAssignmentRule.php.
References getName(), getPluginId(), getRoleId(), getValue(), and isPluginActive().
|
protected |
Definition at line 233 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by matches().
|
private |
Definition at line 40 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by isAddOnUpdateEnabled().
|
private |
Definition at line 37 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by getName().
|
private |
Definition at line 38 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by getValue().
|
private |
Definition at line 35 of file class.ilShibbolethRoleAssignmentRule.php.
|
private |
Definition at line 39 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by isPluginActive().
|
private |
Definition at line 42 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by getPluginId().
|
private |
Definition at line 41 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by isRemoveOnUpdateEnabled().
|
private |
Definition at line 36 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by getRoleId().
|
private |
Definition at line 17 of file class.ilShibbolethRoleAssignmentRule.php.
|
private |
Definition at line 29 of file class.ilShibbolethRoleAssignmentRule.php.
|
private |
Definition at line 25 of file class.ilShibbolethRoleAssignmentRule.php.
|
private |
Definition at line 21 of file class.ilShibbolethRoleAssignmentRule.php.
|
private |
Definition at line 33 of file class.ilShibbolethRoleAssignmentRule.php.