|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Collaboration diagram for ilLDAPRoleAssignmentRule:Public Member Functions | |
| matches ($a_user_data) | |
| Check if a rule matches. More... | |
| setRoleId ($a_role_id) | |
| set role id More... | |
| getRoleId () | |
| get role id More... | |
| getRuleId () | |
| get id More... | |
| setServerId ($a_id) | |
| set server id More... | |
| getServerId () | |
| get server id More... | |
| setType ($a_type) | |
| set type More... | |
| getType () | |
| getType More... | |
| setDN ($a_dn) | |
| set dn More... | |
| getDN () | |
| get dn More... | |
| setMemberAttribute ($a_attribute) | |
| @access public More... | |
| getMemberAttribute () | |
| get attribute More... | |
| setMemberIsDN ($a_status) | |
| set member attribute is dn More... | |
| isMemberAttributeDN () | |
| is member attribute dn More... | |
| setAttributeName ($a_name) | |
| set attribute name More... | |
| getAttributeName () | |
| get attribute name More... | |
| setAttributeValue ($a_value) | |
| set attribute value More... | |
| getAttributeValue () | |
| get atrtibute value More... | |
| enableAddOnUpdate ($a_status) | |
| isAddOnUpdateEnabled () | |
| enableRemoveOnUpdate ($a_status) | |
| isRemoveOnUpdateEnabled () | |
| setPluginId ($a_id) | |
| getPluginId () | |
| isPluginActive () | |
| conditionToString () | |
| condition to string More... | |
| create () | |
| create More... | |
| update () | |
| update More... | |
| validate () | |
| validate More... | |
| delete () | |
| delete rule More... | |
Static Public Member Functions | |
| static | _getInstanceByRuleId ($a_rule_id) |
| get instance by rule id More... | |
| static | hasRulesForUpdate () |
| Check if there any rule for updates. More... | |
| static | _getRules ($a_server_id) |
| Get all rules. More... | |
Data Fields | |
| const | TYPE_GROUP = 1 |
| const | TYPE_ATTRIBUTE = 2 |
| const | TYPE_PLUGIN = 3 |
Protected Member Functions | |
| wildcardCompare ($a_str1, $a_str2) | |
Private Member Functions | |
| __construct ($a_id=0) | |
| Constructor. More... | |
| isGroupMember ($a_user_data) | |
| Check if user is member of specific group. More... | |
| read () | |
| load from db More... | |
Private Attributes | |
| $logger = null | |
| $db = null | |
| $server_id = 0 | |
| $plugin_active = false | |
| $add_on_update = false | |
| $remove_on_update = false | |
| $plugin_id = 0 | |
Static Private Attributes | |
| static | $instances = null |
Definition at line 10 of file class.ilLDAPRoleAssignmentRule.php.
|
private |
Constructor.
@access private
| int | rule id |
Definition at line 42 of file class.ilLDAPRoleAssignmentRule.php.
References $GLOBALS, and read().
Here is the call graph for this function:
|
static |
get instance by rule id
@access public
| int | rule id |
Definition at line 59 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by _getRules(), ilLDAPSettingsGUI\confirmDeleteRules(), ilLDAPSettingsGUI\deleteRules(), ilLDAPSettingsGUI\editRoleAssignment(), ilLDAPRoleAssignmentRules\getAssignmentsForCreation(), ilLDAPRoleAssignmentRules\getAssignmentsForUpdate(), ilLDAPSettingsGUI\loadRoleAssignmentRule(), and ilLDAPSettingsGUI\roleAssignments().
Here is the caller graph for this function:
|
static |
Get all rules.
@access public
Definition at line 182 of file class.ilLDAPRoleAssignmentRule.php.
References $GLOBALS, $ilDB, $query, $res, $row, _getInstanceByRuleId(), and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilLDAPServer\delete(), ilLDAPSettingsGUI\getRoleAssignmentTable(), and ilLDAPSettingsGUI\roleAssignments().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::conditionToString | ( | ) |
condition to string
@access public
Definition at line 433 of file class.ilLDAPRoleAssignmentRule.php.
References $GLOBALS, $lng, getAttributeName(), getAttributeValue(), getDN(), getPluginId(), getType(), TYPE_ATTRIBUTE, TYPE_GROUP, and TYPE_PLUGIN.
Here is the call graph for this function:| ilLDAPRoleAssignmentRule::create | ( | ) |
create
@access public
Definition at line 459 of file class.ilLDAPRoleAssignmentRule.php.
References $db, $ilDB, $query, $res, getAttributeName(), getAttributeValue(), getDN(), getMemberAttribute(), getPluginId(), getRoleId(), getServerId(), getType(), isAddOnUpdateEnabled(), isMemberAttributeDN(), and isRemoveOnUpdateEnabled().
Here is the call graph for this function:| ilLDAPRoleAssignmentRule::delete | ( | ) |
delete rule
@access public
Definition at line 565 of file class.ilLDAPRoleAssignmentRule.php.
References $db, $ilDB, $query, $res, and getRuleId().
Here is the call graph for this function:| ilLDAPRoleAssignmentRule::enableAddOnUpdate | ( | $a_status | ) |
Definition at line 391 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::enableRemoveOnUpdate | ( | $a_status | ) |
Definition at line 401 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getAttributeName | ( | ) |
get attribute name
@access public
Definition at line 363 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), create(), matches(), update(), and validate().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getAttributeValue | ( | ) |
get atrtibute value
@access public
Definition at line 386 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), create(), matches(), update(), and validate().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getDN | ( | ) |
get dn
@access public
Definition at line 294 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), create(), isGroupMember(), update(), and validate().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getMemberAttribute | ( | ) |
get attribute
@access public
Definition at line 317 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by create(), isGroupMember(), update(), and validate().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getPluginId | ( | ) |
Definition at line 416 of file class.ilLDAPRoleAssignmentRule.php.
References $plugin_id.
Referenced by conditionToString(), create(), matches(), update(), and validate().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getRoleId | ( | ) |
get role id
@access public
Definition at line 213 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by create(), matches(), update(), and validate().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getRuleId | ( | ) |
get id
@access public
Definition at line 224 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by delete(), read(), and update().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getServerId | ( | ) |
get server id
@access public
Definition at line 247 of file class.ilLDAPRoleAssignmentRule.php.
References $server_id.
Referenced by create(), isGroupMember(), and update().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getType | ( | ) |
getType
@access public
Definition at line 271 of file class.ilLDAPRoleAssignmentRule.php.
References $type.
Referenced by conditionToString(), create(), isPluginActive(), matches(), update(), and validate().
Here is the caller graph for this function:
|
static |
Check if there any rule for updates.
Definition at line 71 of file class.ilLDAPRoleAssignmentRule.php.
References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilLDAPUserSynchronisation\isUpdateRequired().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::isAddOnUpdateEnabled | ( | ) |
Definition at line 396 of file class.ilLDAPRoleAssignmentRule.php.
References $add_on_update.
Referenced by create(), and update().
Here is the caller graph for this function:
|
private |
Check if user is member of specific group.
@access private
| array | user data |
| array | user_data |
Definition at line 140 of file class.ilLDAPRoleAssignmentRule.php.
References $query, $res, $server, getDN(), ilLDAPServer\getInstanceByServerId(), getMemberAttribute(), getServerId(), IL_LDAP_SCOPE_BASE, and isMemberAttributeDN().
Referenced by matches().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::isMemberAttributeDN | ( | ) |
is member attribute dn
@access public
Definition at line 340 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by create(), isGroupMember(), and update().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::isPluginActive | ( | ) |
Definition at line 421 of file class.ilLDAPRoleAssignmentRule.php.
References getType(), and TYPE_PLUGIN.
Here is the call graph for this function:| ilLDAPRoleAssignmentRule::isRemoveOnUpdateEnabled | ( | ) |
Definition at line 406 of file class.ilLDAPRoleAssignmentRule.php.
References $remove_on_update.
Referenced by create(), and update().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::matches | ( | $a_user_data | ) |
Check if a rule matches.
| object | $a_user_data |
Definition at line 90 of file class.ilLDAPRoleAssignmentRule.php.
References ilObject\_lookupTitle(), ilLDAPRoleAssignmentRules\callPlugin(), getAttributeName(), getAttributeValue(), getPluginId(), getRoleId(), getType(), isGroupMember(), TYPE_ATTRIBUTE, TYPE_GROUP, TYPE_PLUGIN, and wildcardCompare().
Here is the call graph for this function:
|
private |
load from db
@access private
Definition at line 580 of file class.ilLDAPRoleAssignmentRule.php.
References $db, $ilDB, $query, $res, $row, enableAddOnUpdate(), enableRemoveOnUpdate(), ilDBConstants\FETCHMODE_OBJECT, getRuleId(), setAttributeName(), setAttributeValue(), setDN(), setMemberAttribute(), setMemberIsDN(), setPluginId(), setRoleId(), setServerId(), and setType().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setAttributeName | ( | $a_name | ) |
set attribute name
@access public
Definition at line 352 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setAttributeValue | ( | $a_value | ) |
set attribute value
@access public
| string | value |
Definition at line 375 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setDN | ( | $a_dn | ) |
set dn
@access public
| string | dn |
Definition at line 283 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setMemberAttribute | ( | $a_attribute | ) |
@access public
Definition at line 306 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setMemberIsDN | ( | $a_status | ) |
set member attribute is dn
@access public
| bool | status |
Definition at line 329 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setPluginId | ( | $a_id | ) |
Definition at line 411 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setRoleId | ( | $a_role_id | ) |
set role id
@access public
| int | role id of global role |
Definition at line 202 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setServerId | ( | $a_id | ) |
set server id
@access public
| int | server id |
Definition at line 236 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setType | ( | $a_type | ) |
set type
@access public
| int | type |
Definition at line 259 of file class.ilLDAPRoleAssignmentRule.php.
References $a_type.
Referenced by read().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::update | ( | ) |
update
@access public
Definition at line 492 of file class.ilLDAPRoleAssignmentRule.php.
References $db, $ilDB, $query, $res, getAttributeName(), getAttributeValue(), getDN(), getMemberAttribute(), getPluginId(), getRoleId(), getRuleId(), getServerId(), getType(), isAddOnUpdateEnabled(), isMemberAttributeDN(), and isRemoveOnUpdateEnabled().
Here is the call graph for this function:| ilLDAPRoleAssignmentRule::validate | ( | ) |
validate
@access public
Definition at line 519 of file class.ilLDAPRoleAssignmentRule.php.
References $DIC, $ilErr, getAttributeName(), getAttributeValue(), getDN(), getMemberAttribute(), getPluginId(), getRoleId(), getType(), TYPE_ATTRIBUTE, TYPE_GROUP, and TYPE_PLUGIN.
Here is the call graph for this function:
|
protected |
Definition at line 125 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by matches().
Here is the caller graph for this function:
|
private |
Definition at line 30 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by isAddOnUpdateEnabled().
|
private |
|
staticprivate |
Definition at line 12 of file class.ilLDAPRoleAssignmentRule.php.
|
private |
Definition at line 17 of file class.ilLDAPRoleAssignmentRule.php.
|
private |
Definition at line 29 of file class.ilLDAPRoleAssignmentRule.php.
|
private |
Definition at line 32 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by getPluginId().
|
private |
Definition at line 31 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by isRemoveOnUpdateEnabled().
|
private |
Definition at line 28 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by getServerId().
| const ilLDAPRoleAssignmentRule::TYPE_ATTRIBUTE = 2 |
Definition at line 25 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), ilLDAPSettingsGUI\initFormRoleAssignments(), matches(), ilLDAPRoleAssignmentTableGUI\parse(), and validate().
| const ilLDAPRoleAssignmentRule::TYPE_GROUP = 1 |
Definition at line 24 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), ilLDAPSettingsGUI\initFormRoleAssignments(), matches(), ilLDAPRoleAssignmentTableGUI\parse(), and validate().
| const ilLDAPRoleAssignmentRule::TYPE_PLUGIN = 3 |
Definition at line 26 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), isPluginActive(), matches(), ilLDAPRoleAssignmentTableGUI\parse(), and validate().