ILIAS
Release_3_10_x_branch Revision 61812
|
Public Member Functions | |
_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 | |
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 |
Data Fields | |
const | TYPE_GROUP = 1 |
const | TYPE_ATTRIBUTE = 2 |
Private Member Functions | |
__construct ($a_id=0) | |
Constructor. | |
read () | |
load from db |
Static Private Attributes | |
static | $instances = null |
Definition at line 32 of file class.ilLDAPRoleAssignmentRule.php.
|
private |
Constructor.
private
int | rule id |
Definition at line 46 of file class.ilLDAPRoleAssignmentRule.php.
References read().
|
static |
get instance by rule id
public
int | rule id |
Definition at line 64 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by _getRules(), ilLDAPSettingsGUI\addRoleAssignment(), ilLDAPSettingsGUI\confirmDeleteRules(), ilLDAPSettingsGUI\deleteRules(), ilLDAPSettingsGUI\editRoleAssignment(), ilLDAPSettingsGUI\roleAssignments(), and ilLDAPSettingsGUI\updateRoleAssignment().
ilLDAPRoleAssignmentRule::_getRules | ( | ) |
Get all rules.
public
Definition at line 80 of file class.ilLDAPRoleAssignmentRule.php.
References $res, _getInstanceByRuleId(), and DB_FETCHMODE_OBJECT.
Referenced by ilLDAPSettingsGUI\roleAssignments().
ilLDAPRoleAssignmentRule::conditionToString | ( | ) |
condition to string
public
Definition at line 295 of file class.ilLDAPRoleAssignmentRule.php.
References getAttributeName(), getAttributeValue(), getDN(), and getType().
ilLDAPRoleAssignmentRule::create | ( | ) |
create
public
Definition at line 317 of file class.ilLDAPRoleAssignmentRule.php.
References $res, getAttributeName(), getAttributeValue(), getDN(), getMemberAttribute(), getRoleId(), getServerId(), getType(), and isMemberAttributeDN().
ilLDAPRoleAssignmentRule::delete | ( | ) |
delete rule
public
Definition at line 406 of file class.ilLDAPRoleAssignmentRule.php.
References getRuleId().
ilLDAPRoleAssignmentRule::getAttributeName | ( | ) |
get attribute name
public
Definition at line 261 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), create(), ilLDAPSettingsGUI\initFormRoleAssignments(), update(), and validate().
ilLDAPRoleAssignmentRule::getAttributeValue | ( | ) |
get atrtibute value
public
Definition at line 284 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), create(), ilLDAPSettingsGUI\initFormRoleAssignments(), update(), and validate().
ilLDAPRoleAssignmentRule::getDN | ( | ) |
get dn
public
Definition at line 192 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), create(), ilLDAPSettingsGUI\initFormRoleAssignments(), update(), and validate().
ilLDAPRoleAssignmentRule::getMemberAttribute | ( | ) |
get attribute
public
Definition at line 215 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by create(), ilLDAPSettingsGUI\initFormRoleAssignments(), update(), and validate().
ilLDAPRoleAssignmentRule::getRoleId | ( | ) |
get role id
public
Definition at line 111 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by create(), ilLDAPSettingsGUI\initFormRoleAssignments(), update(), and validate().
ilLDAPRoleAssignmentRule::getRuleId | ( | ) |
get id
public
Definition at line 122 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by delete(), read(), and update().
ilLDAPRoleAssignmentRule::getServerId | ( | ) |
get server id
public
Definition at line 145 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by create(), and update().
ilLDAPRoleAssignmentRule::getType | ( | ) |
getType
public
Definition at line 169 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), create(), ilLDAPSettingsGUI\initFormRoleAssignments(), update(), and validate().
ilLDAPRoleAssignmentRule::isMemberAttributeDN | ( | ) |
is member attribute dn
public
Definition at line 238 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by create(), ilLDAPSettingsGUI\initFormRoleAssignments(), and update().
|
private |
load from db
private
Definition at line 420 of file class.ilLDAPRoleAssignmentRule.php.
References $res, DB_FETCHMODE_OBJECT, getRuleId(), setAttributeName(), setAttributeValue(), setDN(), setMemberAttribute(), setMemberIsDN(), setRoleId(), setServerId(), and setType().
Referenced by __construct().
ilLDAPRoleAssignmentRule::setAttributeName | ( | $a_name | ) |
set attribute name
public
Definition at line 250 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setAttributeValue | ( | $a_value | ) |
set attribute value
public
string | value |
Definition at line 273 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setDN | ( | $a_dn | ) |
set dn
public
string | dn |
Definition at line 181 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setMemberAttribute | ( | $a_attribute | ) |
public
Definition at line 204 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setMemberIsDN | ( | $a_status | ) |
set member attribute is dn
public
bool | status |
Definition at line 227 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 100 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setServerId | ( | $a_id | ) |
set server id
public
int | server id |
Definition at line 134 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setType | ( | $a_type | ) |
set type
public
int | type |
Definition at line 157 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::update | ( | ) |
update
public
Definition at line 340 of file class.ilLDAPRoleAssignmentRule.php.
References $res, getAttributeName(), getAttributeValue(), getDN(), getMemberAttribute(), getRoleId(), getRuleId(), getServerId(), getType(), and isMemberAttributeDN().
ilLDAPRoleAssignmentRule::validate | ( | ) |
validate
public
Definition at line 365 of file class.ilLDAPRoleAssignmentRule.php.
References $ilErr, getAttributeName(), getAttributeValue(), getDN(), getMemberAttribute(), getRoleId(), and getType().
|
staticprivate |
Definition at line 34 of file class.ilLDAPRoleAssignmentRule.php.
const ilLDAPRoleAssignmentRule::TYPE_ATTRIBUTE = 2 |
Definition at line 37 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by ilLDAPSettingsGUI\initFormRoleAssignments().
const ilLDAPRoleAssignmentRule::TYPE_GROUP = 1 |
Definition at line 36 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by ilLDAPSettingsGUI\initFormRoleAssignments(), and ilLDAPRoleAssignmentTableGUI\parse().