25        $this->mapping_id = $a_mapping_id;
 
   33        $query = 
"SELECT * FROM ldap_rg_mapping " 
   34                . 
"WHERE mapping_id = " . $this->db->quote($this->
getMappingId(), 
'integer');
 
   35        $set = $this->db->query(
$query);
 
   36        $rec = $this->db->fetchAssoc($set);
 
   40        $this->
setURL($rec[
"url"]);
 
   41        $this->
setDN($rec[
"dn"]);
 
   52    public function delete()
 
   54        $query = 
"DELETE FROM ldap_rg_mapping " .
 
   55            "WHERE mapping_id = " . $this->db->quote($this->
getMappingId(), 
'integer');
 
   64        $query = 
"UPDATE ldap_rg_mapping " .
 
   65                    "SET server_id = " . $this->db->quote($this->
getServerId(), 
'integer') . 
", " .
 
   66                    "url = " . $this->db->quote($this->
getURL(), 
'text') . 
", " .
 
   67                    "dn =" . $this->db->quote($this->
getDN(), 
'text') . 
", " .
 
   69                    "member_isdn = " . $this->db->quote($this->
getMemberISDN(), 
'integer') . 
", " .
 
   70                    "role = " . $this->db->quote($this->
getRole(), 
'integer') . 
", " .
 
   71                    "mapping_info = " . $this->db->quote($this->
getMappingInfo(), 
'text') . 
", " .
 
   72                    "mapping_info_type = " . $this->db->quote($this->
getMappingInfoType(), 
'integer') . 
" " .
 
   73                    "WHERE mapping_id = " . $this->db->quote($this->
getMappingId(), 
'integer');
 
   82        $this->
setMappingId($this->db->nextId(
'ldap_rg_mapping'));
 
   83        $query = 
"INSERT INTO ldap_rg_mapping (mapping_id,server_id,url,dn,member_attribute,member_isdn,role,mapping_info,mapping_info_type) " .
 
   85                    $this->db->quote($this->
getMappingId(), 
'integer') . 
", " .
 
   86                    $this->db->quote($this->
getServerId(), 
'integer') . 
", " .
 
   87                    $this->db->quote($this->
getURL(), 
'text') . 
", " .
 
   88                    $this->db->quote($this->
getDN(), 
'text') . 
", " .
 
   91                    $this->db->quote($this->
getRole(), 
'integer') . 
", " .
 
  104        return $this->mapping_id;
 
  113        $this->mapping_id = $a_value;
 
  122        return $this->server_id;
 
  131        $this->server_id = $a_value;
 
  149        $this->url = $a_value;
 
  167        $this->dn = $a_value;
 
  176        return $this->member_attribute;
 
  185        $this->member_attribute = $a_value;
 
  194        return $this->member_isdn;
 
  203        $this->member_isdn = $a_value;
 
  221        $this->role = $a_value;
 
  233        $ilObjDataCache = 
$DIC[
'ilObjDataCache'];
 
  234        return $ilObjDataCache->lookupTitle($this->role);
 
  246        $rbacreview = 
$DIC[
'rbacreview'];
 
  256        return $this->mapping_info;
 
  265        $this->mapping_info = $a_value;
 
  274        return $this->mapping_info_type;
 
  283        $this->mapping_info_type = $a_value;
 
An exception for terminatinating execution or to throw for unit testing.
setDN($a_value)
set group dn
getMappingInfo()
get Information Text
getRoleName()
get ILIAS Role Name @global type $ilObjDataCache
getMappingInfoType()
get Show Information also in the Repository/Personal Desktop
getMappingId()
get mapping id
getServerId()
get server id
setMemberAttribute($a_value)
set Group Member Attribute
setMappingInfoType($a_value)
set Show Information also in the Repository/Personal Desktop
setMappingId($a_value)
set mapping id
setRole($a_value)
set ILIAS Role Name id
setServerId($a_value)
set server id
getMemberAttribute()
get Group Member Attribute
getRole()
get ILIAS Role Name id
setMemberISDN($a_value)
set Member Attribute Value is DN
update()
update mapping by id
setRoleByName($a_value)
set ILIAS Role Name @global ilRbacReview $rbacreview
__construct($a_mapping_id)
constructor @global ilDB $ilDB
setMappingInfo($a_value)
set 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
foreach($_POST as $key=> $value) $res