|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Collaboration diagram for ilLDAPRoleAssignmentRule:Public Member Functions | |
| matches ($a_user_data) | |
| Check if a rule matches. More... | |
| _getRules () | |
| Get all rules. 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... | |
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 | |
| $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 |
Constructor.
@access private
| int | rule id |
Definition at line 54 of file class.ilLDAPRoleAssignmentRule.php.
Here is the call graph for this function:
|
static |
get instance by rule id
@access 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:| ilLDAPRoleAssignmentRule::_getRules | ( | ) |
Get all rules.
@access 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 caller graph for this function:| ilLDAPRoleAssignmentRule::conditionToString | ( | ) |
condition to string
@access public
Definition at line 465 of file class.ilLDAPRoleAssignmentRule.php.
References $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 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:| ilLDAPRoleAssignmentRule::delete | ( | ) |
delete rule
@access public
Definition at line 602 of file class.ilLDAPRoleAssignmentRule.php.
References $ilDB, $query, $res, and getRuleId().
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:| ilLDAPRoleAssignmentRule::enableRemoveOnUpdate | ( | $a_status | ) |
Definition at line 433 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 395 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 418 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 326 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 349 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 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:| ilLDAPRoleAssignmentRule::getRoleId | ( | ) |
get role id
@access public
Definition at line 245 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by create(), update(), and validate().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getRuleId | ( | ) |
get id
@access public
Definition at line 256 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 279 of file class.ilLDAPRoleAssignmentRule.php.
References $server_id.
Referenced by create(), and update().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getType | ( | ) |
getType
@access 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:
|
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 ilLDAPUserSynchronisation\isUpdateRequired(), ilAuthContainerApache\updateRequired(), and ilAuthContainerLDAP\updateRequired().
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:
|
private |
Check if user is member of specific group.
@access 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 caller graph for this function:| ilLDAPRoleAssignmentRule::isMemberAttributeDN | ( | ) |
is member attribute dn
@access public
Definition at line 372 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by create(), isGroupMember(), and update().
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:| 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:| 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(), 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 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 caller graph for this function:| ilLDAPRoleAssignmentRule::setAttributeName | ( | $a_name | ) |
set attribute name
@access public
Definition at line 384 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 407 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 315 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 338 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 361 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
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:| ilLDAPRoleAssignmentRule::setRoleId | ( | $a_role_id | ) |
set role id
@access 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:| ilLDAPRoleAssignmentRule::setServerId | ( | $a_id | ) |
set server id
@access public
| int | server id |
Definition at line 268 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 291 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::update | ( | ) |
update
@access 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:| ilLDAPRoleAssignmentRule::validate | ( | ) |
validate
@access public
Definition at line 553 of file class.ilLDAPRoleAssignmentRule.php.
References $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 153 of file class.ilLDAPRoleAssignmentRule.php.
References $GLOBALS.
Referenced by matches().
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 conditionToString(), ilLDAPSettingsGUI\initFormRoleAssignments(), matches(), ilLDAPRoleAssignmentTableGUI\parse(), and validate().
| const ilLDAPRoleAssignmentRule::TYPE_GROUP = 1 |
Definition at line 36 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), ilLDAPSettingsGUI\initFormRoleAssignments(), matches(), ilLDAPRoleAssignmentTableGUI\parse(), and validate().
| const ilLDAPRoleAssignmentRule::TYPE_PLUGIN = 3 |
Definition at line 38 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), isPluginActive(), matches(), ilLDAPRoleAssignmentTableGUI\parse(), and validate().