| ILIAS
    Release_4_1_x_branch Revision 61804
    | 
 Collaboration diagram for ilLDAPRoleAssignmentRule:
 Collaboration diagram for ilLDAPRoleAssignmentRule:| Public Member Functions | |
| matches ($a_user_data) | |
| Check if a rule matches. | |
| _getRules () | |
| Get all rules. | |
| setRoleId ($a_role_id) | |
| set role id | |
| getRoleId () | |
| get role id | |
| getRuleId () | |
| get id | |
| setServerId ($a_id) | |
| set server id | |
| getServerId () | |
| get server id | |
| setType ($a_type) | |
| set type | |
| getType () | |
| getType | |
| setDN ($a_dn) | |
| set dn | |
| getDN () | |
| get dn | |
| setMemberAttribute ($a_attribute) | |
| public | |
| getMemberAttribute () | |
| get attribute | |
| setMemberIsDN ($a_status) | |
| set member attribute is dn | |
| isMemberAttributeDN () | |
| is member attribute dn | |
| setAttributeName ($a_name) | |
| set attribute name | |
| getAttributeName () | |
| get attribute name | |
| setAttributeValue ($a_value) | |
| set attribute value | |
| getAttributeValue () | |
| get atrtibute value | |
| enableAddOnUpdate ($a_status) | |
| isAddOnUpdateEnabled () | |
| enableRemoveOnUpdate ($a_status) | |
| isRemoveOnUpdateEnabled () | |
| setPluginId ($a_id) | |
| getPluginId () | |
| isPluginActive () | |
| conditionToString () | |
| condition to string | |
| create () | |
| create | |
| update () | |
| update | |
| validate () | |
| validate | |
| delete () | |
| delete rule | |
| Static Public Member Functions | |
| static | _getInstanceByRuleId ($a_rule_id) | 
| get instance by rule id | |
| static | hasRulesForUpdate () | 
| Check if there any rule for updates. | |
| 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. | |
| isGroupMember ($a_user_data) | |
| Check if user is member of specific group. | |
| read () | |
| load from db | |
| Private Attributes | |
| $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 32 of file class.ilLDAPRoleAssignmentRule.php.
| 
 | private | 
| 
 | static | 
get instance by rule id
public
| int | rule id | 
Definition at line 72 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:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::_getRules | ( | ) | 
Get all rules.
public
Definition at line 214 of file class.ilLDAPRoleAssignmentRule.php.
References $ilDB, $query, $res, $row, _getInstanceByRuleId(), and DB_FETCHMODE_OBJECT.
Referenced by ilLDAPSettingsGUI\getRoleAssignmentTable(), and ilLDAPSettingsGUI\roleAssignments().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::conditionToString | ( | ) | 
condition to string
public
Definition at line 465 of file class.ilLDAPRoleAssignmentRule.php.
References $lng, getAttributeName(), getAttributeValue(), getDN(), getPluginId(), and getType().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilLDAPRoleAssignmentRule::create | ( | ) | 
create
public
Definition at line 492 of file class.ilLDAPRoleAssignmentRule.php.
References $ilDB, $query, $res, getAttributeName(), getAttributeValue(), getDN(), getMemberAttribute(), getPluginId(), getRoleId(), getServerId(), getType(), isAddOnUpdateEnabled(), isMemberAttributeDN(), and isRemoveOnUpdateEnabled().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilLDAPRoleAssignmentRule::delete | ( | ) | 
delete rule
public
Definition at line 602 of file class.ilLDAPRoleAssignmentRule.php.
References $ilDB, $query, $res, and getRuleId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilLDAPRoleAssignmentRule::enableAddOnUpdate | ( | $a_status | ) | 
Definition at line 423 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::enableRemoveOnUpdate | ( | $a_status | ) | 
Definition at line 433 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getAttributeName | ( | ) | 
get attribute name
public
Definition at line 395 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), create(), matches(), update(), and validate().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getAttributeValue | ( | ) | 
get atrtibute value
public
Definition at line 418 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), create(), matches(), update(), and validate().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getDN | ( | ) | 
get dn
public
Definition at line 326 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), create(), isGroupMember(), update(), and validate().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getMemberAttribute | ( | ) | 
get attribute
public
Definition at line 349 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by create(), isGroupMember(), update(), and validate().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getPluginId | ( | ) | 
Definition at line 448 of file class.ilLDAPRoleAssignmentRule.php.
References $plugin_id.
Referenced by conditionToString(), create(), matches(), update(), and validate().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getRoleId | ( | ) | 
get role id
public
Definition at line 245 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by create(), update(), and validate().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getRuleId | ( | ) | 
get id
public
Definition at line 256 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by delete(), read(), and update().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getServerId | ( | ) | 
get server id
public
Definition at line 279 of file class.ilLDAPRoleAssignmentRule.php.
References $server_id.
Referenced by create(), and update().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getType | ( | ) | 
getType
public
Definition at line 303 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), create(), isPluginActive(), matches(), update(), and validate().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Check if there any rule for updates.
Definition at line 85 of file class.ilLDAPRoleAssignmentRule.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilAuthContainerApache\updateRequired(), and ilAuthContainerLDAP\updateRequired().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::isAddOnUpdateEnabled | ( | ) | 
Definition at line 428 of file class.ilLDAPRoleAssignmentRule.php.
References $add_on_update.
Referenced by create(), and update().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Check if user is member of specific group.
private
| array | user data | 
| array | user_data | 
Definition at line 168 of file class.ilLDAPRoleAssignmentRule.php.
References $ilLog, $query, $res, $server, ilLDAPServer\_getFirstActiveServer(), getDN(), ilLDAPServer\getInstanceByServerId(), getMemberAttribute(), IL_LDAP_SCOPE_BASE, and isMemberAttributeDN().
Referenced by matches().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::isMemberAttributeDN | ( | ) | 
is member attribute dn
public
Definition at line 372 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by create(), isGroupMember(), and update().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::isPluginActive | ( | ) | 
Definition at line 453 of file class.ilLDAPRoleAssignmentRule.php.
References getType(), and TYPE_PLUGIN.
 Here is the call graph for this function:
 Here is the call graph for this function:| ilLDAPRoleAssignmentRule::isRemoveOnUpdateEnabled | ( | ) | 
Definition at line 438 of file class.ilLDAPRoleAssignmentRule.php.
References $remove_on_update.
Referenced by create(), and update().
 Here is the caller graph for this function:
 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 102 of file class.ilLDAPRoleAssignmentRule.php.
References $ilLog, ilObject\_lookupTitle(), ilLDAPRoleAssignmentRules\callPlugin(), getAttributeName(), getAttributeValue(), getPluginId(), getType(), isGroupMember(), and wildcardCompare().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | private | 
load from db
private
Definition at line 618 of file class.ilLDAPRoleAssignmentRule.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, enableAddOnUpdate(), enableRemoveOnUpdate(), 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 call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setAttributeName | ( | $a_name | ) | 
set attribute name
public
Definition at line 384 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setAttributeValue | ( | $a_value | ) | 
set attribute value
public
| string | value | 
Definition at line 407 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setDN | ( | $a_dn | ) | 
set dn
public
| string | dn | 
Definition at line 315 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setMemberAttribute | ( | $a_attribute | ) | 
public
Definition at line 338 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setMemberIsDN | ( | $a_status | ) | 
set member attribute is dn
public
| bool | status | 
Definition at line 361 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setPluginId | ( | $a_id | ) | 
Definition at line 443 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setRoleId | ( | $a_role_id | ) | 
set role id
public
| int | role id of global role | 
Definition at line 234 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setServerId | ( | $a_id | ) | 
set server id
public
| int | server id | 
Definition at line 268 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setType | ( | $a_type | ) | 
set type
public
| int | type | 
Definition at line 291 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::update | ( | ) | 
update
public
Definition at line 526 of file class.ilLDAPRoleAssignmentRule.php.
References $ilDB, $query, $res, getAttributeName(), getAttributeValue(), getDN(), getMemberAttribute(), getPluginId(), getRoleId(), getRuleId(), getServerId(), getType(), isAddOnUpdateEnabled(), isMemberAttributeDN(), and isRemoveOnUpdateEnabled().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilLDAPRoleAssignmentRule::validate | ( | ) | 
validate
public
Definition at line 553 of file class.ilLDAPRoleAssignmentRule.php.
References $ilErr, getAttributeName(), getAttributeValue(), getDN(), getMemberAttribute(), getPluginId(), getRoleId(), and getType().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Definition at line 153 of file class.ilLDAPRoleAssignmentRule.php.
References $GLOBALS.
Referenced by matches().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 42 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by isAddOnUpdateEnabled().
| 
 | staticprivate | 
Definition at line 34 of file class.ilLDAPRoleAssignmentRule.php.
| 
 | private | 
Definition at line 41 of file class.ilLDAPRoleAssignmentRule.php.
| 
 | private | 
Definition at line 44 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by getPluginId().
| 
 | private | 
Definition at line 43 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by isRemoveOnUpdateEnabled().
| 
 | private | 
Definition at line 40 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by getServerId().
| const ilLDAPRoleAssignmentRule::TYPE_ATTRIBUTE = 2 | 
Definition at line 37 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by ilLDAPSettingsGUI\initFormRoleAssignments(), and ilLDAPRoleAssignmentTableGUI\parse().
| const ilLDAPRoleAssignmentRule::TYPE_GROUP = 1 | 
Definition at line 36 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by ilLDAPSettingsGUI\initFormRoleAssignments(), and ilLDAPRoleAssignmentTableGUI\parse().
| const ilLDAPRoleAssignmentRule::TYPE_PLUGIN = 3 | 
Definition at line 38 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by isPluginActive(), and ilLDAPRoleAssignmentTableGUI\parse().