ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilLDAPRoleGroupMappingSetting Class Reference
+ Collaboration diagram for ilLDAPRoleGroupMappingSetting:

Public Member Functions

 __construct ($a_mapping_id)
 constructor ilDB $ilDB
 read ()
 read data from db
 delete ()
 delete mapping by id
 update ()
 update mapping by id
 save ()
 create new mapping
 getMappingId ()
 get mapping id
 setMappingId ($a_value)
 set mapping id
 getServerId ()
 get server id
 setServerId ($a_value)
 set server id
 getURL ()
 get url
 setURL ($a_value)
 set url
 getDN ()
 get group dn
 setDN ($a_value)
 set group dn
 getMemberAttribute ()
 get Group Member Attribute
 setMemberAttribute ($a_value)
 set Group Member Attribute
 getMemberISDN ()
 get Member Attribute Value is DN
 setMemberISDN ($a_value)
 set Member Attribute Value is DN
 getRole ()
 get ILIAS Role Name id
 setRole ($a_value)
 set ILIAS Role Name id
 getRoleName ()
 get ILIAS Role Name type $ilObjDataCache
 setRoleByName ($a_value)
 set ILIAS Role Name ilRbacReview $rbacreview
 getMappingInfo ()
 get Information Text
 setMappingInfo ($a_value)
 set Information Text
 getMappingInfoType ()
 get Show Information also in the Repository/Personal Desktop
 setMappingInfoType ($a_value)
 set Show Information also in the Repository/Personal Desktop

Detailed Description

Author
Fabian Wolf wolf@.nosp@m.leif.nosp@m.os.de
Version
Id:

/

Definition at line 12 of file class.ilLDAPRoleGroupMappingSetting.php.

Constructor & Destructor Documentation

ilLDAPRoleGroupMappingSetting::__construct (   $a_mapping_id)

constructor ilDB $ilDB

Parameters
int$a_mapping_id

Definition at line 19 of file class.ilLDAPRoleGroupMappingSetting.php.

References $ilDB.

{
global $ilDB;
$this->db = $ilDB;
$this->mapping_id = $a_mapping_id;
}

Member Function Documentation

ilLDAPRoleGroupMappingSetting::delete ( )

delete mapping by id

Definition at line 50 of file class.ilLDAPRoleGroupMappingSetting.php.

References $query, $res, and getMappingId().

{
$query = "DELETE FROM ldap_rg_mapping ".
"WHERE mapping_id = ".$this->db->quote($this->getMappingId(),'integer');
$res = $this->db->manipulate($query);
}

+ Here is the call graph for this function:

ilLDAPRoleGroupMappingSetting::getDN ( )

get group dn

Returns
string

Definition at line 154 of file class.ilLDAPRoleGroupMappingSetting.php.

Referenced by save(), and update().

{
return $this->dn;
}

+ Here is the caller graph for this function:

ilLDAPRoleGroupMappingSetting::getMappingId ( )

get mapping id

Returns
int mapping id

Definition at line 100 of file class.ilLDAPRoleGroupMappingSetting.php.

Referenced by delete(), read(), save(), and update().

{
return $this->mapping_id;
}

+ Here is the caller graph for this function:

ilLDAPRoleGroupMappingSetting::getMappingInfo ( )

get Information Text

Returns
string

Definition at line 248 of file class.ilLDAPRoleGroupMappingSetting.php.

Referenced by save(), and update().

{
return $this->mapping_info;
}

+ Here is the caller graph for this function:

ilLDAPRoleGroupMappingSetting::getMappingInfoType ( )

get Show Information also in the Repository/Personal Desktop

Returns
bool

Definition at line 266 of file class.ilLDAPRoleGroupMappingSetting.php.

Referenced by save(), and update().

{
return $this->mapping_info_type;
}

+ Here is the caller graph for this function:

ilLDAPRoleGroupMappingSetting::getMemberAttribute ( )

get Group Member Attribute

Returns
string

Definition at line 172 of file class.ilLDAPRoleGroupMappingSetting.php.

Referenced by save(), and update().

{
return $this->member_attribute;
}

+ Here is the caller graph for this function:

ilLDAPRoleGroupMappingSetting::getMemberISDN ( )

get Member Attribute Value is DN

Returns
bool

Definition at line 190 of file class.ilLDAPRoleGroupMappingSetting.php.

Referenced by save(), and update().

{
return $this->member_isdn;
}

+ Here is the caller graph for this function:

ilLDAPRoleGroupMappingSetting::getRole ( )

get ILIAS Role Name id

Returns
int

Definition at line 208 of file class.ilLDAPRoleGroupMappingSetting.php.

Referenced by save(), and update().

{
return $this->role;
}

+ Here is the caller graph for this function:

ilLDAPRoleGroupMappingSetting::getRoleName ( )

get ILIAS Role Name type $ilObjDataCache

Returns
string

Definition at line 227 of file class.ilLDAPRoleGroupMappingSetting.php.

{
global $ilObjDataCache;
return $ilObjDataCache->lookupTitle($this->role);
}
ilLDAPRoleGroupMappingSetting::getServerId ( )

get server id

Returns
int server id id

Definition at line 118 of file class.ilLDAPRoleGroupMappingSetting.php.

Referenced by save(), and update().

{
return $this->server_id;
}

+ Here is the caller graph for this function:

ilLDAPRoleGroupMappingSetting::getURL ( )

get url

Returns
string url

Definition at line 136 of file class.ilLDAPRoleGroupMappingSetting.php.

Referenced by save(), and update().

{
return $this->url;
}

+ Here is the caller graph for this function:

ilLDAPRoleGroupMappingSetting::read ( )

read data from db

Definition at line 29 of file class.ilLDAPRoleGroupMappingSetting.php.

References $query, getMappingId(), setDN(), setMappingId(), setMappingInfo(), setMappingInfoType(), setMemberAttribute(), setMemberISDN(), setRole(), setServerId(), and setURL().

{
$query = "SELECT * FROM ldap_rg_mapping "
."WHERE mapping_id = " . $this->db->quote($this->getMappingId(),'integer');
$set = $this->db->query($query);
$rec = $this->db->fetchAssoc($set);
$this->setMappingId($rec["mapping_id"]);
$this->setServerId($rec["server_id"]);
$this->setURL($rec["url"]);
$this->setDN($rec["dn"]);
$this->setMemberAttribute($rec["member_attribute"]);
$this->setMemberISDN($rec["member_isdn"]);
$this->setRole($rec["role"]);
$this->setMappingInfo($rec["mapping_info"]);
$this->setMappingInfoType($rec["mapping_info_type"]);
}

+ Here is the call graph for this function:

ilLDAPRoleGroupMappingSetting::save ( )

create new mapping

Definition at line 78 of file class.ilLDAPRoleGroupMappingSetting.php.

References $query, $res, getDN(), getMappingId(), getMappingInfo(), getMappingInfoType(), getMemberAttribute(), getMemberISDN(), getRole(), getServerId(), getURL(), and setMappingId().

{
$this->setMappingId($this->db->nextId('ldap_rg_mapping'));
$query = "INSERT INTO ldap_rg_mapping (mapping_id,server_id,url,dn,member_attribute,member_isdn,role,mapping_info,mapping_info_type) ".
"VALUES ( ".
$this->db->quote($this->getMappingId(),'integer').", ".
$this->db->quote($this->getServerId(),'integer').", ".
$this->db->quote($this->getURL(),'text').", ".
$this->db->quote($this->getDN(),'text').", ".
$this->db->quote($this->getMemberAttribute(),'text').", ".
$this->db->quote($this->getMemberISDN(),'integer').", ".
$this->db->quote($this->getRole(),'integer').", ".
$this->db->quote($this->getMappingInfo(),'text').", ".
$this->db->quote($this->getMappingInfoType(),'integer').
")";
$res = $this->db->manipulate($query);
}

+ Here is the call graph for this function:

ilLDAPRoleGroupMappingSetting::setDN (   $a_value)

set group dn

Parameters
string$a_value

Definition at line 163 of file class.ilLDAPRoleGroupMappingSetting.php.

Referenced by read().

{
$this->dn = $a_value;
}

+ Here is the caller graph for this function:

ilLDAPRoleGroupMappingSetting::setMappingId (   $a_value)

set mapping id

Parameters
int$a_valuemapping id

Definition at line 109 of file class.ilLDAPRoleGroupMappingSetting.php.

Referenced by read(), and save().

{
$this->mapping_id = $a_value;
}

+ Here is the caller graph for this function:

ilLDAPRoleGroupMappingSetting::setMappingInfo (   $a_value)

set Information Text

Parameters
string$a_value

Definition at line 257 of file class.ilLDAPRoleGroupMappingSetting.php.

Referenced by read().

{
$this->mapping_info = $a_value;
}

+ Here is the caller graph for this function:

ilLDAPRoleGroupMappingSetting::setMappingInfoType (   $a_value)

set Show Information also in the Repository/Personal Desktop

Parameters
bool$a_value

Definition at line 275 of file class.ilLDAPRoleGroupMappingSetting.php.

Referenced by read().

{
$this->mapping_info_type = $a_value;
}

+ Here is the caller graph for this function:

ilLDAPRoleGroupMappingSetting::setMemberAttribute (   $a_value)

set Group Member Attribute

Parameters
string$a_value

Definition at line 181 of file class.ilLDAPRoleGroupMappingSetting.php.

Referenced by read().

{
$this->member_attribute = $a_value;
}

+ Here is the caller graph for this function:

ilLDAPRoleGroupMappingSetting::setMemberISDN (   $a_value)

set Member Attribute Value is DN

Parameters
bool$a_value

Definition at line 199 of file class.ilLDAPRoleGroupMappingSetting.php.

Referenced by read().

{
$this->member_isdn = $a_value;
}

+ Here is the caller graph for this function:

ilLDAPRoleGroupMappingSetting::setRole (   $a_value)

set ILIAS Role Name id

Parameters
int$a_value

Definition at line 217 of file class.ilLDAPRoleGroupMappingSetting.php.

Referenced by read().

{
$this->role = $a_value;
}

+ Here is the caller graph for this function:

ilLDAPRoleGroupMappingSetting::setRoleByName (   $a_value)

set ILIAS Role Name ilRbacReview $rbacreview

Parameters
string$a_value

Definition at line 238 of file class.ilLDAPRoleGroupMappingSetting.php.

References ilUtil\stripSlashes().

{
global $rbacreview;
$this->role = $rbacreview->roleExists(ilUtil::stripSlashes($a_value));
}

+ Here is the call graph for this function:

ilLDAPRoleGroupMappingSetting::setServerId (   $a_value)

set server id

Parameters
int$a_valueserver id

Definition at line 127 of file class.ilLDAPRoleGroupMappingSetting.php.

Referenced by read().

{
$this->server_id = $a_value;
}

+ Here is the caller graph for this function:

ilLDAPRoleGroupMappingSetting::setURL (   $a_value)

set url

Parameters
string$a_valueurl

Definition at line 145 of file class.ilLDAPRoleGroupMappingSetting.php.

Referenced by read().

{
$this->url = $a_value;
}

+ Here is the caller graph for this function:

ilLDAPRoleGroupMappingSetting::update ( )

update mapping by id

Definition at line 60 of file class.ilLDAPRoleGroupMappingSetting.php.

References $query, $res, getDN(), getMappingId(), getMappingInfo(), getMappingInfoType(), getMemberAttribute(), getMemberISDN(), getRole(), getServerId(), and getURL().

{
$query = "UPDATE ldap_rg_mapping ".
"SET server_id = ".$this->db->quote($this->getServerId(),'integer').", ".
"url = ".$this->db->quote($this->getURL(),'text').", ".
"dn =".$this->db->quote($this->getDN(),'text').", ".
"member_attribute = ".$this->db->quote($this->getMemberAttribute(),'text').", ".
"member_isdn = ".$this->db->quote($this->getMemberISDN(),'integer').", ".
"role = ".$this->db->quote($this->getRole(),'integer').", ".
"mapping_info = ".$this->db->quote($this->getMappingInfo(),'text').", ".
"mapping_info_type = ".$this->db->quote($this->getMappingInfoType(),'integer')." ".
"WHERE mapping_id = ".$this->db->quote($this->getMappingId(),'integer');
$res = $this->db->manipulate($query);
}

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: