ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Shibboleth role assignment rule. More...
Public Member Functions | |
__construct ($a_rule_id=0) | |
setRuleId ($a_id) | |
getRuleId () | |
setRoleId ($a_id) | |
getRoleId () | |
setName ($a_name) | |
getName () | |
setValue ($a_value) | |
getValue () | |
enablePlugin ($a_status) | |
isPluginActive () | |
enableAddOnUpdate ($a_status) | |
isAddOnUpdateEnabled () | |
enableRemoveOnUpdate ($a_status) | |
isRemoveOnUpdateEnabled () | |
setPluginId ($a_id) | |
getPluginId () | |
conditionToString () | |
validate () | |
delete () | |
add () | |
update () | |
matches ($a_data) | |
doesMatch (array $a_data) | |
Data Fields | |
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' |
Protected Member Functions | |
wildcardCompare ($a_str1, $a_str2) | |
Protected Attributes | |
$db | |
Private Member Functions | |
read () | |
Private Attributes | |
$rule_id = 0 | |
$role_id = 0 | |
$attribute_name = '' | |
$attribute_value = '' | |
$plugin_active = false | |
$add_on_update = false | |
$remove_on_update = false | |
$plugin_id = 0 | |
Shibboleth role assignment rule.
Definition at line 35 of file class.ilShibbolethRoleAssignmentRule.php.
ilShibbolethRoleAssignmentRule::__construct | ( | $a_rule_id = 0 | ) |
int | $a_rule_id |
Definition at line 83 of file class.ilShibbolethRoleAssignmentRule.php.
References $DIC, $ilDB, and read().
ilShibbolethRoleAssignmentRule::add | ( | ) |
Definition at line 293 of file class.ilShibbolethRoleAssignmentRule.php.
References $query, getName(), getPluginId(), getRoleId(), getValue(), isAddOnUpdateEnabled(), isPluginActive(), isRemoveOnUpdateEnabled(), and setRuleId().
ilShibbolethRoleAssignmentRule::conditionToString | ( | ) |
Definition at line 240 of file class.ilShibbolethRoleAssignmentRule.php.
References $DIC, $lng, getName(), getPluginId(), getValue(), and isPluginActive().
ilShibbolethRoleAssignmentRule::delete | ( | ) |
Definition at line 281 of file class.ilShibbolethRoleAssignmentRule.php.
References $query, and getRuleId().
ilShibbolethRoleAssignmentRule::doesMatch | ( | array | $a_data | ) |
array | $a_data |
Definition at line 371 of file class.ilShibbolethRoleAssignmentRule.php.
References ilShibbolethRoleAssignmentRules\callPlugin(), getName(), getPluginId(), getValue(), and isPluginActive().
ilShibbolethRoleAssignmentRule::enableAddOnUpdate | ( | $a_status | ) |
$a_status |
Definition at line 186 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::enablePlugin | ( | $a_status | ) |
$a_status |
Definition at line 168 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::enableRemoveOnUpdate | ( | $a_status | ) |
$a_status |
Definition at line 204 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::getName | ( | ) |
Definition at line 141 of file class.ilShibbolethRoleAssignmentRule.php.
References $attribute_name.
Referenced by add(), conditionToString(), doesMatch(), matches(), update(), and validate().
ilShibbolethRoleAssignmentRule::getPluginId | ( | ) |
Definition at line 231 of file class.ilShibbolethRoleAssignmentRule.php.
References $plugin_id.
Referenced by add(), conditionToString(), doesMatch(), matches(), update(), and validate().
ilShibbolethRoleAssignmentRule::getRoleId | ( | ) |
Definition at line 123 of file class.ilShibbolethRoleAssignmentRule.php.
References $role_id.
Referenced by add(), update(), and validate().
ilShibbolethRoleAssignmentRule::getRuleId | ( | ) |
ilShibbolethRoleAssignmentRule::getValue | ( | ) |
Definition at line 159 of file class.ilShibbolethRoleAssignmentRule.php.
References $attribute_value.
Referenced by add(), conditionToString(), doesMatch(), matches(), update(), and validate().
ilShibbolethRoleAssignmentRule::isAddOnUpdateEnabled | ( | ) |
Definition at line 195 of file class.ilShibbolethRoleAssignmentRule.php.
References $add_on_update.
Referenced by add(), and update().
ilShibbolethRoleAssignmentRule::isPluginActive | ( | ) |
Definition at line 177 of file class.ilShibbolethRoleAssignmentRule.php.
References $plugin_active.
Referenced by add(), conditionToString(), doesMatch(), matches(), update(), and validate().
ilShibbolethRoleAssignmentRule::isRemoveOnUpdateEnabled | ( | ) |
Definition at line 213 of file class.ilShibbolethRoleAssignmentRule.php.
References $remove_on_update.
Referenced by add(), and update().
ilShibbolethRoleAssignmentRule::matches | ( | $a_data | ) |
$a_data |
Definition at line 333 of file class.ilShibbolethRoleAssignmentRule.php.
References ilShibbolethRoleAssignmentRules\callPlugin(), getName(), getPluginId(), getValue(), isPluginActive(), and wildcardCompare().
|
private |
Definition at line 393 of file class.ilShibbolethRoleAssignmentRule.php.
References $query, $res, $row, enableAddOnUpdate(), enablePlugin(), enableRemoveOnUpdate(), ilDBConstants\FETCHMODE_OBJECT, getRuleId(), setName(), setPluginId(), setRoleId(), and setValue().
Referenced by __construct().
ilShibbolethRoleAssignmentRule::setName | ( | $a_name | ) |
$a_name |
Definition at line 132 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::setPluginId | ( | $a_id | ) |
$a_id |
Definition at line 222 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::setRoleId | ( | $a_id | ) |
$a_id |
Definition at line 114 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::setRuleId | ( | $a_id | ) |
$a_id |
Definition at line 96 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by add().
ilShibbolethRoleAssignmentRule::setValue | ( | $a_value | ) |
$a_value |
Definition at line 150 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by read().
ilShibbolethRoleAssignmentRule::update | ( | ) |
Definition at line 312 of file class.ilShibbolethRoleAssignmentRule.php.
References $query, getName(), getPluginId(), getRoleId(), getRuleId(), getValue(), isAddOnUpdateEnabled(), isPluginActive(), and isRemoveOnUpdateEnabled().
ilShibbolethRoleAssignmentRule::validate | ( | ) |
Definition at line 255 of file class.ilShibbolethRoleAssignmentRule.php.
References getName(), getPluginId(), getRoleId(), getValue(), and isPluginActive().
|
protected |
$a_str1 | |
$a_str2 |
Definition at line 358 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by matches().
|
private |
Definition at line 69 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by isAddOnUpdateEnabled().
|
private |
Definition at line 57 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by getName().
|
private |
Definition at line 61 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by getValue().
|
protected |
Definition at line 45 of file class.ilShibbolethRoleAssignmentRule.php.
|
private |
Definition at line 65 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by isPluginActive().
|
private |
Definition at line 77 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by getPluginId().
|
private |
Definition at line 73 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 49 of file class.ilShibbolethRoleAssignmentRule.php.
Referenced by getRuleId().
const ilShibbolethRoleAssignmentRule::ERR_MISSING_NAME = 'shib_missing_attr_name' |
Definition at line 37 of file class.ilShibbolethRoleAssignmentRule.php.
const ilShibbolethRoleAssignmentRule::ERR_MISSING_PLUGIN_ID = 'shib_missing_plugin_id' |
Definition at line 40 of file class.ilShibbolethRoleAssignmentRule.php.
const ilShibbolethRoleAssignmentRule::ERR_MISSING_ROLE = 'shib_missing_role' |
Definition at line 39 of file class.ilShibbolethRoleAssignmentRule.php.
const ilShibbolethRoleAssignmentRule::ERR_MISSING_VALUE = 'shib_missing_attr_value' |
Definition at line 38 of file class.ilShibbolethRoleAssignmentRule.php.
const ilShibbolethRoleAssignmentRule::TABLE_NAME = 'shib_role_assignment' |
Definition at line 41 of file class.ilShibbolethRoleAssignmentRule.php.