23 $this->mapping_id = $a_mapping_id;
31 $query =
"SELECT * FROM ldap_rg_mapping " 32 .
"WHERE mapping_id = " . $this->db->quote($this->
getMappingId(),
'integer');
33 $set = $this->db->query(
$query);
34 $rec = $this->db->fetchAssoc($set);
38 $this->
setURL($rec[
"url"]);
39 $this->
setDN($rec[
"dn"]);
50 public function delete()
52 $query =
"DELETE FROM ldap_rg_mapping " .
53 "WHERE mapping_id = " . $this->db->quote($this->
getMappingId(),
'integer');
62 $query =
"UPDATE ldap_rg_mapping " .
63 "SET server_id = " . $this->db->quote($this->
getServerId(),
'integer') .
", " .
64 "url = " . $this->db->quote($this->
getURL(),
'text') .
", " .
65 "dn =" . $this->db->quote($this->
getDN(),
'text') .
", " .
67 "member_isdn = " . $this->db->quote($this->
getMemberISDN(),
'integer') .
", " .
68 "role = " . $this->db->quote($this->
getRole(),
'integer') .
", " .
69 "mapping_info = " . $this->db->quote($this->
getMappingInfo(),
'text') .
", " .
70 "mapping_info_type = " . $this->db->quote($this->
getMappingInfoType(),
'integer') .
" " .
71 "WHERE mapping_id = " . $this->db->quote($this->
getMappingId(),
'integer');
80 $this->
setMappingId($this->db->nextId(
'ldap_rg_mapping'));
81 $query =
"INSERT INTO ldap_rg_mapping (mapping_id,server_id,url,dn,member_attribute,member_isdn,role,mapping_info,mapping_info_type) " .
83 $this->db->quote($this->
getMappingId(),
'integer') .
", " .
84 $this->db->quote($this->
getServerId(),
'integer') .
", " .
85 $this->db->quote($this->
getURL(),
'text') .
", " .
86 $this->db->quote($this->
getDN(),
'text') .
", " .
89 $this->db->quote($this->
getRole(),
'integer') .
", " .
93 $res = $this->db->manipulate($query);
102 return $this->mapping_id;
111 $this->mapping_id = $a_value;
120 return $this->server_id;
129 $this->server_id = $a_value;
147 $this->url = $a_value;
165 $this->dn = $a_value;
174 return $this->member_attribute;
183 $this->member_attribute = $a_value;
192 return $this->member_isdn;
201 $this->member_isdn = $a_value;
219 $this->role = $a_value;
229 global $ilObjDataCache;
230 return $ilObjDataCache->lookupTitle($this->role);
250 return $this->mapping_info;
259 $this->mapping_info = $a_value;
268 return $this->mapping_info_type;
277 $this->mapping_info_type = $a_value;
getRole()
get ILIAS Role Name id
setMappingId($a_value)
set mapping id
getMappingId()
get mapping id
setDN($a_value)
set group dn
setMemberISDN($a_value)
set Member Attribute Value is DN
getServerId()
get server id
__construct($a_mapping_id)
constructor ilDB $ilDB
setMappingInfoType($a_value)
set Show Information also in the Repository/Personal Desktop
setRole($a_value)
set ILIAS Role Name id
setServerId($a_value)
set server id
getMemberAttribute()
get Group Member Attribute
setRoleByName($a_value)
set ILIAS Role Name ilRbacReview $rbacreview
getRoleName()
get ILIAS Role Name type $ilObjDataCache
update()
update mapping by id
foreach($_POST as $key=> $value) $res
getMappingInfoType()
get Show Information also in the Repository/Personal Desktop
getMappingInfo()
get Information Text
getMemberISDN()
get Member Attribute Value is DN
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
setMemberAttribute($a_value)
set Group Member Attribute
setMappingInfo($a_value)
set Information Text