| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
 Collaboration diagram for ilLDAPRoleAssignmentRule:Public Member Functions | |
| matches (array $a_user_data) | |
| Check if a rule matches.  More... | |
| setRoleId (int $a_role_id) | |
| set role id  More... | |
| getRoleId () | |
| get role id  More... | |
| getRuleId () | |
| get id  More... | |
| setServerId (int $a_id) | |
| set server id  More... | |
| getServerId () | |
| get server id  More... | |
| setType (int $a_type) | |
| set type  More... | |
| getType () | |
| getType  More... | |
| setDN (string $a_dn) | |
| set dn  More... | |
| getDN () | |
| get dn  More... | |
| setMemberAttribute (string $a_attribute) | |
| getMemberAttribute () | |
| get attribute  More... | |
| setMemberIsDN (bool $a_status) | |
| set member attribute is dn  More... | |
| isMemberAttributeDN () | |
| is member attribute dn  More... | |
| setAttributeName (string $a_name) | |
| set attribute name  More... | |
| getAttributeName () | |
| get attribute name  More... | |
| setAttributeValue (string $a_value) | |
| set attribute value  More... | |
| getAttributeValue () | |
| get atrtibute value  More... | |
| enableAddOnUpdate (bool $a_status) | |
| isAddOnUpdateEnabled () | |
| enableRemoveOnUpdate (bool $a_status) | |
| isRemoveOnUpdateEnabled () | |
| setPluginId (int $a_id) | |
| getPluginId () | |
| isPluginActive () | |
| conditionToString () | |
| create () | |
| update () | |
| validate () | |
| delete () | |
Static Public Member Functions | |
| static | _getInstanceByRuleId (int $a_rule_id) | 
| 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 (string $a_str1, string $a_str2) | |
Private Member Functions | |
| __construct (int $a_rule_id=0) | |
| isGroupMember (array $a_user_data) | |
| Check if user is member of specific group.  More... | |
| read () | |
Private Attributes | |
| ilLogger | $logger | 
| ilDBInterface | $db | 
| ilErrorHandling | $ilErr | 
| ilLanguage | $lng | 
| int | $rule_id | 
| int | $server_id = 0 | 
| bool | $add_on_update = false | 
| bool | $remove_on_update = false | 
| int | $plugin_id = 0 | 
| string | $attribute_value = '' | 
| string | $attribute_name = '' | 
| bool | $member_is_dn = false | 
| string | $member_attribute = '' | 
| string | $dn = '' | 
| int | $type = 0 | 
| int | $role_id = 0 | 
Static Private Attributes | |
| static array | $instances = [] | 
Definition at line 25 of file class.ilLDAPRoleAssignmentRule.php.
      
  | 
  private | 
Definition at line 52 of file class.ilLDAPRoleAssignmentRule.php.
References $DIC, ILIAS\Repository\lng(), ILIAS\Repository\logger(), and read().
 Here is the call graph for this function:
      
  | 
  static | 
Definition at line 64 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by 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.
Definition at line 196 of file class.ilLDAPRoleAssignmentRule.php.
References $DIC, $ilDB, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilLDAPServer\delete(), ilLDAPSettingsGUI\getRoleAssignmentTable(), and ilLDAPSettingsGUI\roleAssignments().
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::conditionToString | ( | ) | 
Definition at line 383 of file class.ilLDAPRoleAssignmentRule.php.
References getAttributeName(), getAttributeValue(), getDN(), getPluginId(), getType(), and ILIAS\Repository\lng().
Referenced by ilLDAPSettingsGUI\confirmDeleteRules().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::create | ( | ) | 
Definition at line 401 of file class.ilLDAPRoleAssignmentRule.php.
References getAttributeName(), getAttributeValue(), getDN(), getMemberAttribute(), getPluginId(), getRoleId(), getServerId(), getType(), isAddOnUpdateEnabled(), isMemberAttributeDN(), and isRemoveOnUpdateEnabled().
 Here is the call graph for this function:| ilLDAPRoleAssignmentRule::delete | ( | ) | 
Definition at line 484 of file class.ilLDAPRoleAssignmentRule.php.
References getRuleId().
Referenced by ilLDAPSettingsGUI\deleteRules().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::enableAddOnUpdate | ( | bool | $a_status | ) | 
Definition at line 348 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::enableRemoveOnUpdate | ( | bool | $a_status | ) | 
Definition at line 358 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getAttributeName | ( | ) | 
get attribute name
Definition at line 327 of file class.ilLDAPRoleAssignmentRule.php.
References $attribute_name.
Referenced by conditionToString(), create(), matches(), update(), and validate().
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getAttributeValue | ( | ) | 
get atrtibute value
Definition at line 343 of file class.ilLDAPRoleAssignmentRule.php.
References $attribute_value.
Referenced by conditionToString(), create(), matches(), update(), and validate().
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getDN | ( | ) | 
get dn
Definition at line 282 of file class.ilLDAPRoleAssignmentRule.php.
References $dn.
Referenced by conditionToString(), create(), isGroupMember(), update(), and validate().
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getMemberAttribute | ( | ) | 
get attribute
Definition at line 295 of file class.ilLDAPRoleAssignmentRule.php.
References $member_attribute.
Referenced by create(), isGroupMember(), update(), and validate().
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getPluginId | ( | ) | 
Definition at line 373 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
Definition at line 226 of file class.ilLDAPRoleAssignmentRule.php.
References $role_id.
Referenced by create(), matches(), update(), and validate().
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getRuleId | ( | ) | 
| ilLDAPRoleAssignmentRule::getServerId | ( | ) | 
get server id
Definition at line 250 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
Definition at line 266 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 72 of file class.ilLDAPRoleAssignmentRule.php.
References $DIC, $ilDB, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilLDAPUserSynchronisation\isUpdateRequired().
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::isAddOnUpdateEnabled | ( | ) | 
Definition at line 353 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.
| array | $a_user_data | user_data | 
Definition at line 155 of file class.ilLDAPRoleAssignmentRule.php.
References Vendor\Package\$e, $res, $server, getDN(), ilLDAPServer\getInstanceByServerId(), getMemberAttribute(), getServerId(), isMemberAttributeDN(), ilLDAPServer\LDAP_SCOPE_BASE, and ILIAS\Repository\logger().
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
Definition at line 311 of file class.ilLDAPRoleAssignmentRule.php.
References $member_is_dn.
Referenced by create(), isGroupMember(), and update().
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::isPluginActive | ( | ) | 
Definition at line 378 of file class.ilLDAPRoleAssignmentRule.php.
References getType().
 Here is the call graph for this function:| ilLDAPRoleAssignmentRule::isRemoveOnUpdateEnabled | ( | ) | 
Definition at line 363 of file class.ilLDAPRoleAssignmentRule.php.
References $remove_on_update.
Referenced by create(), and update().
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::matches | ( | array | $a_user_data | ) | 
Check if a rule matches.
Definition at line 90 of file class.ilLDAPRoleAssignmentRule.php.
References ilObject\_lookupTitle(), ilLDAPRoleAssignmentRules\callPlugin(), getAttributeName(), getAttributeValue(), getPluginId(), getRoleId(), getType(), isGroupMember(), ILIAS\Repository\logger(), and wildcardCompare().
 Here is the call graph for this function:
      
  | 
  private | 
Definition at line 493 of file class.ilLDAPRoleAssignmentRule.php.
References $res, 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 | ( | string | $a_name | ) | 
set attribute name
Definition at line 319 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setAttributeValue | ( | string | $a_value | ) | 
set attribute value
Definition at line 335 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setDN | ( | string | $a_dn | ) | 
set dn
Definition at line 274 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setMemberAttribute | ( | string | $a_attribute | ) | 
Definition at line 287 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setMemberIsDN | ( | bool | $a_status | ) | 
set member attribute is dn
Definition at line 303 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setPluginId | ( | int | $a_id | ) | 
Definition at line 368 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setRoleId | ( | int | $a_role_id | ) | 
set role id
| int | $a_role_id | role id of global role | 
Definition at line 218 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setServerId | ( | int | $a_id | ) | 
set server id
Definition at line 242 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setType | ( | int | $a_type | ) | 
set type
Definition at line 258 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::update | ( | ) | 
Definition at line 427 of file class.ilLDAPRoleAssignmentRule.php.
References getAttributeName(), getAttributeValue(), getDN(), getMemberAttribute(), getPluginId(), getRoleId(), getRuleId(), getServerId(), getType(), isAddOnUpdateEnabled(), isMemberAttributeDN(), and isRemoveOnUpdateEnabled().
 Here is the call graph for this function:| ilLDAPRoleAssignmentRule::validate | ( | ) | 
Definition at line 447 of file class.ilLDAPRoleAssignmentRule.php.
References getAttributeName(), getAttributeValue(), getDN(), getMemberAttribute(), getPluginId(), getRoleId(), and getType().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 125 of file class.ilLDAPRoleAssignmentRule.php.
References $message, ILIAS\Repository\logger(), and ilAuthUtils\REGEX_DELIMITERS.
Referenced by matches().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 41 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by isAddOnUpdateEnabled().
      
  | 
  private | 
Definition at line 45 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by getAttributeName().
      
  | 
  private | 
Definition at line 44 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by getAttributeValue().
      
  | 
  private | 
Definition at line 34 of file class.ilLDAPRoleAssignmentRule.php.
      
  | 
  private | 
Definition at line 48 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by getDN().
      
  | 
  private | 
Definition at line 35 of file class.ilLDAPRoleAssignmentRule.php.
      
  | 
  staticprivate | 
Definition at line 31 of file class.ilLDAPRoleAssignmentRule.php.
      
  | 
  private | 
Definition at line 36 of file class.ilLDAPRoleAssignmentRule.php.
      
  | 
  private | 
Definition at line 33 of file class.ilLDAPRoleAssignmentRule.php.
      
  | 
  private | 
Definition at line 47 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by getMemberAttribute().
      
  | 
  private | 
Definition at line 46 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by isMemberAttributeDN().
      
  | 
  private | 
Definition at line 43 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by getPluginId().
      
  | 
  private | 
Definition at line 42 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by isRemoveOnUpdateEnabled().
      
  | 
  private | 
Definition at line 50 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by getRoleId().
      
  | 
  private | 
Definition at line 38 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by getRuleId().
      
  | 
  private | 
Definition at line 40 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by getServerId().
      
  | 
  private | 
Definition at line 49 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by getType().
| const ilLDAPRoleAssignmentRule::TYPE_ATTRIBUTE = 2 | 
Definition at line 28 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by ilLDAPSettingsGUI\initFormRoleAssignments(), ilLDAPSettingsGUI\loadRoleAssignmentRule(), and ilLDAPRoleAssignmentTableGUI\parse().
| const ilLDAPRoleAssignmentRule::TYPE_GROUP = 1 | 
Definition at line 27 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by ilLDAPSettingsGUI\initFormRoleAssignments(), and ilLDAPRoleAssignmentTableGUI\parse().
| const ilLDAPRoleAssignmentRule::TYPE_PLUGIN = 3 | 
Definition at line 29 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by ilLDAPRoleAssignmentTableGUI\parse().