ILIAS
Release_4_4_x_branch Revision 61816
|
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 |
Constructor.
private
int | rule id |
Definition at line 54 of file class.ilLDAPRoleAssignmentRule.php.
References read().
|
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().
ilLDAPRoleAssignmentRule::_getRules | ( | ) |
Get all rules.
public
Definition at line 214 of file class.ilLDAPRoleAssignmentRule.php.
References $query, $res, $row, _getInstanceByRuleId(), and DB_FETCHMODE_OBJECT.
Referenced by ilLDAPSettingsGUI\getRoleAssignmentTable(), and ilLDAPSettingsGUI\roleAssignments().
ilLDAPRoleAssignmentRule::conditionToString | ( | ) |
condition to string
public
Definition at line 465 of file class.ilLDAPRoleAssignmentRule.php.
References $lng, getAttributeName(), getAttributeValue(), getDN(), getPluginId(), and getType().
ilLDAPRoleAssignmentRule::create | ( | ) |
create
public
Definition at line 492 of file class.ilLDAPRoleAssignmentRule.php.
References $query, $res, getAttributeName(), getAttributeValue(), getDN(), getMemberAttribute(), getPluginId(), getRoleId(), getServerId(), getType(), isAddOnUpdateEnabled(), isMemberAttributeDN(), and isRemoveOnUpdateEnabled().
ilLDAPRoleAssignmentRule::delete | ( | ) |
delete rule
public
Definition at line 602 of file class.ilLDAPRoleAssignmentRule.php.
References $query, $res, and getRuleId().
ilLDAPRoleAssignmentRule::enableAddOnUpdate | ( | $a_status | ) |
Definition at line 423 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::enableRemoveOnUpdate | ( | $a_status | ) |
Definition at line 433 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::getAttributeName | ( | ) |
get attribute name
public
Definition at line 395 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), create(), matches(), update(), and validate().
ilLDAPRoleAssignmentRule::getAttributeValue | ( | ) |
get atrtibute value
public
Definition at line 418 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), create(), matches(), update(), and validate().
ilLDAPRoleAssignmentRule::getDN | ( | ) |
get dn
public
Definition at line 326 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), create(), isGroupMember(), update(), and validate().
ilLDAPRoleAssignmentRule::getMemberAttribute | ( | ) |
get attribute
public
Definition at line 349 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by create(), isGroupMember(), update(), and validate().
ilLDAPRoleAssignmentRule::getPluginId | ( | ) |
Definition at line 448 of file class.ilLDAPRoleAssignmentRule.php.
References $plugin_id.
Referenced by conditionToString(), create(), matches(), update(), and validate().
ilLDAPRoleAssignmentRule::getRoleId | ( | ) |
get role id
public
Definition at line 245 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by create(), update(), and validate().
ilLDAPRoleAssignmentRule::getRuleId | ( | ) |
get id
public
Definition at line 256 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by delete(), read(), and update().
ilLDAPRoleAssignmentRule::getServerId | ( | ) |
get server id
public
Definition at line 279 of file class.ilLDAPRoleAssignmentRule.php.
References $server_id.
Referenced by create(), and update().
ilLDAPRoleAssignmentRule::getType | ( | ) |
getType
public
Definition at line 303 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), create(), isPluginActive(), matches(), update(), and validate().
|
static |
Check if there any rule for updates.
Definition at line 85 of file class.ilLDAPRoleAssignmentRule.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilLDAPUserSynchronisation\isUpdateRequired(), ilAuthContainerApache\updateRequired(), and ilAuthContainerLDAP\updateRequired().
ilLDAPRoleAssignmentRule::isAddOnUpdateEnabled | ( | ) |
Definition at line 428 of file class.ilLDAPRoleAssignmentRule.php.
References $add_on_update.
Referenced by create(), and update().
|
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().
ilLDAPRoleAssignmentRule::isMemberAttributeDN | ( | ) |
is member attribute dn
public
Definition at line 372 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by create(), isGroupMember(), and update().
ilLDAPRoleAssignmentRule::isPluginActive | ( | ) |
Definition at line 453 of file class.ilLDAPRoleAssignmentRule.php.
References getType(), and TYPE_PLUGIN.
ilLDAPRoleAssignmentRule::isRemoveOnUpdateEnabled | ( | ) |
Definition at line 438 of file class.ilLDAPRoleAssignmentRule.php.
References $remove_on_update.
Referenced by create(), and update().
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().
|
private |
load from db
private
Definition at line 618 of file class.ilLDAPRoleAssignmentRule.php.
References $query, $res, $row, DB_FETCHMODE_OBJECT, enableAddOnUpdate(), enableRemoveOnUpdate(), getRuleId(), setAttributeName(), setAttributeValue(), setDN(), setMemberAttribute(), setMemberIsDN(), setPluginId(), setRoleId(), setServerId(), and setType().
Referenced by __construct().
ilLDAPRoleAssignmentRule::setAttributeName | ( | $a_name | ) |
set attribute name
public
Definition at line 384 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setAttributeValue | ( | $a_value | ) |
set attribute value
public
string | value |
Definition at line 407 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setDN | ( | $a_dn | ) |
set dn
public
string | dn |
Definition at line 315 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setMemberAttribute | ( | $a_attribute | ) |
public
Definition at line 338 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setMemberIsDN | ( | $a_status | ) |
set member attribute is dn
public
bool | status |
Definition at line 361 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setPluginId | ( | $a_id | ) |
Definition at line 443 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
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().
ilLDAPRoleAssignmentRule::setServerId | ( | $a_id | ) |
set server id
public
int | server id |
Definition at line 268 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setType | ( | $a_type | ) |
set type
public
int | type |
Definition at line 291 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::update | ( | ) |
update
public
Definition at line 526 of file class.ilLDAPRoleAssignmentRule.php.
References $query, $res, getAttributeName(), getAttributeValue(), getDN(), getMemberAttribute(), getPluginId(), getRoleId(), getRuleId(), getServerId(), getType(), isAddOnUpdateEnabled(), isMemberAttributeDN(), and isRemoveOnUpdateEnabled().
ilLDAPRoleAssignmentRule::validate | ( | ) |
validate
public
Definition at line 553 of file class.ilLDAPRoleAssignmentRule.php.
References $ilErr, getAttributeName(), getAttributeValue(), getDN(), getMemberAttribute(), getPluginId(), getRoleId(), and getType().
|
protected |
Definition at line 153 of file class.ilLDAPRoleAssignmentRule.php.
References $GLOBALS.
Referenced by matches().
|
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().