ILIAS
Release_4_0_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 |
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().
ilLDAPRoleAssignmentRule::_getRules | ( | ) |
Get all rules.
public
Definition at line 200 of file class.ilLDAPRoleAssignmentRule.php.
References $ilDB, $query, $res, $row, _getInstanceByRuleId(), and DB_FETCHMODE_OBJECT.
Referenced by ilLDAPSettingsGUI\getRoleAssignmentTable(), and ilLDAPSettingsGUI\roleAssignments().
ilLDAPRoleAssignmentRule::conditionToString | ( | ) |
condition to string
public
Definition at line 451 of file class.ilLDAPRoleAssignmentRule.php.
References $lng, getAttributeName(), getAttributeValue(), getDN(), getPluginId(), and getType().
ilLDAPRoleAssignmentRule::create | ( | ) |
create
public
Definition at line 478 of file class.ilLDAPRoleAssignmentRule.php.
References $ilDB, $query, $res, getAttributeName(), getAttributeValue(), getDN(), getMemberAttribute(), getPluginId(), getRoleId(), getServerId(), getType(), isAddOnUpdateEnabled(), isMemberAttributeDN(), and isRemoveOnUpdateEnabled().
ilLDAPRoleAssignmentRule::delete | ( | ) |
delete rule
public
Definition at line 588 of file class.ilLDAPRoleAssignmentRule.php.
References $ilDB, $query, $res, and getRuleId().
ilLDAPRoleAssignmentRule::enableAddOnUpdate | ( | $a_status | ) |
Definition at line 409 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::enableRemoveOnUpdate | ( | $a_status | ) |
Definition at line 419 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::getAttributeName | ( | ) |
get attribute name
public
Definition at line 381 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), create(), matches(), update(), and validate().
ilLDAPRoleAssignmentRule::getAttributeValue | ( | ) |
get atrtibute value
public
Definition at line 404 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), create(), matches(), update(), and validate().
ilLDAPRoleAssignmentRule::getDN | ( | ) |
get dn
public
Definition at line 312 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), create(), isGroupMember(), update(), and validate().
ilLDAPRoleAssignmentRule::getMemberAttribute | ( | ) |
get attribute
public
Definition at line 335 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by create(), isGroupMember(), update(), and validate().
ilLDAPRoleAssignmentRule::getPluginId | ( | ) |
Definition at line 434 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 231 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by create(), update(), and validate().
ilLDAPRoleAssignmentRule::getRuleId | ( | ) |
get id
public
Definition at line 242 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by delete(), read(), and update().
ilLDAPRoleAssignmentRule::getServerId | ( | ) |
get server id
public
Definition at line 265 of file class.ilLDAPRoleAssignmentRule.php.
References $server_id.
Referenced by create(), and update().
ilLDAPRoleAssignmentRule::getType | ( | ) |
getType
public
Definition at line 289 of file class.ilLDAPRoleAssignmentRule.php.
References $type.
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 $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilAuthContainerLDAP\updateRequired().
ilLDAPRoleAssignmentRule::isAddOnUpdateEnabled | ( | ) |
Definition at line 414 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 154 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 358 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by create(), isGroupMember(), and update().
ilLDAPRoleAssignmentRule::isPluginActive | ( | ) |
Definition at line 439 of file class.ilLDAPRoleAssignmentRule.php.
References getType(), and TYPE_PLUGIN.
ilLDAPRoleAssignmentRule::isRemoveOnUpdateEnabled | ( | ) |
Definition at line 424 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(), and isGroupMember().
|
private |
load from db
private
Definition at line 604 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().
ilLDAPRoleAssignmentRule::setAttributeName | ( | $a_name | ) |
set attribute name
public
Definition at line 370 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setAttributeValue | ( | $a_value | ) |
set attribute value
public
string | value |
Definition at line 393 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setDN | ( | $a_dn | ) |
set dn
public
string | dn |
Definition at line 301 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setMemberAttribute | ( | $a_attribute | ) |
public
Definition at line 324 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setMemberIsDN | ( | $a_status | ) |
set member attribute is dn
public
bool | status |
Definition at line 347 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setPluginId | ( | $a_id | ) |
Definition at line 429 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 220 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setServerId | ( | $a_id | ) |
set server id
public
int | server id |
Definition at line 254 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setType | ( | $a_type | ) |
set type
public
int | type |
Definition at line 277 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::update | ( | ) |
update
public
Definition at line 512 of file class.ilLDAPRoleAssignmentRule.php.
References $ilDB, $query, $res, getAttributeName(), getAttributeValue(), getDN(), getMemberAttribute(), getPluginId(), getRoleId(), getRuleId(), getServerId(), getType(), isAddOnUpdateEnabled(), isMemberAttributeDN(), and isRemoveOnUpdateEnabled().
ilLDAPRoleAssignmentRule::validate | ( | ) |
validate
public
Definition at line 539 of file class.ilLDAPRoleAssignmentRule.php.
References $ilErr, getAttributeName(), getAttributeValue(), getDN(), getMemberAttribute(), getPluginId(), getRoleId(), and getType().
|
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().