Inheritance diagram for ilMDDescription:
Collaboration diagram for ilMDDescription:Public Member Functions | |
| ilMDDescription ($a_rbac_id=0, $a_obj_id=0, $a_obj_type= '') | |
| setDescription ($a_description) | |
| getDescription () | |
| setDescriptionLanguage (&$lng_obj) | |
| & | getDescriptionLanguage () |
| getDescriptionLanguageCode () | |
| save () | |
| update () | |
| delete () | |
| __getFields () | |
| read () | |
| toXML (&$writer) | |
| _getIds ($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type) | |
| ilMDDescription ($a_rbac_id=0, $a_obj_id=0, $a_obj_type= '') | |
| setDescription ($a_description) | |
| getDescription () | |
| setDescriptionLanguage (&$lng_obj) | |
| & | getDescriptionLanguage () |
| getDescriptionLanguageCode () | |
| save () | |
| update () | |
| delete () | |
| __getFields () | |
| read () | |
| toXML (&$writer) | |
| _getIds ($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type) | |
Definition at line 33 of file class.ilMDDescription.php.
| ilMDDescription::__getFields | ( | ) |
Definition at line 110 of file class.ilMDDescription.php.
References getDescription(), getDescriptionLanguageCode(), ilMDBase::getObjId(), ilMDBase::getObjType(), ilMDBase::getParentId(), ilMDBase::getParentType(), ilMDBase::getRBACId(), and ilUtil::prepareDBString().
{
return array('rbac_id' => $this->getRBACId(),
'obj_id' => $this->getObjId(),
'obj_type' => ilUtil::prepareDBString($this->getObjType()),
'parent_type' => $this->getParentType(),
'parent_id' => $this->getParentId(),
'description' => ilUtil::prepareDBString($this->getDescription()),
'description_language' => ilUtil::prepareDBString($this->getDescriptionLanguageCode()));
}
Here is the call graph for this function:| ilMDDescription::__getFields | ( | ) |
Definition at line 110 of file class.ilMDDescription.php.
References getDescription(), getDescriptionLanguageCode(), ilMDBase::getObjId(), ilMDBase::getObjType(), ilMDBase::getParentId(), ilMDBase::getParentType(), ilMDBase::getRBACId(), and ilUtil::prepareDBString().
{
return array('rbac_id' => $this->getRBACId(),
'obj_id' => $this->getObjId(),
'obj_type' => ilUtil::prepareDBString($this->getObjType()),
'parent_type' => $this->getParentType(),
'parent_id' => $this->getParentId(),
'description' => ilUtil::prepareDBString($this->getDescription()),
'description_language' => ilUtil::prepareDBString($this->getDescriptionLanguageCode()));
}
Here is the call graph for this function:| ilMDDescription::_getIds | ( | $ | a_rbac_id, | |
| $ | a_obj_id, | |||
| $ | a_parent_id, | |||
| $ | a_parent_type | |||
| ) |
Definition at line 157 of file class.ilMDDescription.php.
References $query, $res, and $row.
Referenced by ilMDGeneral::getDescriptionIds(), and ilMDEducational::getDescriptionIds().
{
global $ilDB;
$query = "SELECT meta_description_id FROM il_meta_description ".
"WHERE rbac_id = '".$a_rbac_id."' ".
"AND obj_id = '".$a_obj_id."' ".
"AND parent_id = '".$a_parent_id."' ".
"AND parent_type = '".$a_parent_type."' ".
"ORDER BY meta_description_id";
$res = $ilDB->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$ids[] = $row->meta_description_id;
}
return $ids ? $ids : array();
}
Here is the caller graph for this function:| ilMDDescription::_getIds | ( | $ | a_rbac_id, | |
| $ | a_obj_id, | |||
| $ | a_parent_id, | |||
| $ | a_parent_type | |||
| ) |
Definition at line 157 of file class.ilMDDescription.php.
References $query, $res, and $row.
{
global $ilDB;
$query = "SELECT meta_description_id FROM il_meta_description ".
"WHERE rbac_id = '".$a_rbac_id."' ".
"AND obj_id = '".$a_obj_id."' ".
"AND parent_id = '".$a_parent_id."' ".
"AND parent_type = '".$a_parent_type."' ".
"ORDER BY meta_description_id";
$res = $ilDB->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$ids[] = $row->meta_description_id;
}
return $ids ? $ids : array();
}
| ilMDDescription::delete | ( | ) |
Reimplemented from ilMDBase.
Definition at line 95 of file class.ilMDDescription.php.
References $query, and ilMDBase::getMetaId().
{
if($this->getMetaId())
{
$query = "DELETE FROM il_meta_description ".
"WHERE meta_description_id = '".$this->getMetaId()."'";
$this->db->query($query);
return true;
}
return false;
}
Here is the call graph for this function:| ilMDDescription::delete | ( | ) |
Reimplemented from ilMDBase.
Definition at line 95 of file class.ilMDDescription.php.
References $query, and ilMDBase::getMetaId().
{
if($this->getMetaId())
{
$query = "DELETE FROM il_meta_description ".
"WHERE meta_description_id = '".$this->getMetaId()."'";
$this->db->query($query);
return true;
}
return false;
}
Here is the call graph for this function:| ilMDDescription::getDescription | ( | ) |
Definition at line 47 of file class.ilMDDescription.php.
{
return $this->description;
}
| ilMDDescription::getDescription | ( | ) |
Definition at line 47 of file class.ilMDDescription.php.
Referenced by __getFields(), and toXML().
{
return $this->description;
}
Here is the caller graph for this function:| & ilMDDescription::getDescriptionLanguage | ( | ) |
Definition at line 58 of file class.ilMDDescription.php.
{
return is_object($this->description_language) ? $this->description_language : false;
}
| & ilMDDescription::getDescriptionLanguage | ( | ) |
Definition at line 58 of file class.ilMDDescription.php.
{
return is_object($this->description_language) ? $this->description_language : false;
}
| ilMDDescription::getDescriptionLanguageCode | ( | ) |
Definition at line 62 of file class.ilMDDescription.php.
{
return is_object($this->description_language) ? $this->description_language->getLanguageCode() : false;
}
| ilMDDescription::getDescriptionLanguageCode | ( | ) |
Definition at line 62 of file class.ilMDDescription.php.
Referenced by __getFields(), and toXML().
{
return is_object($this->description_language) ? $this->description_language->getLanguageCode() : false;
}
Here is the caller graph for this function:| ilMDDescription::ilMDDescription | ( | $ | a_rbac_id = 0, |
|
| $ | a_obj_id = 0, |
|||
| $ | a_obj_type = '' | |||
| ) |
Definition at line 35 of file class.ilMDDescription.php.
References ilMDBase::ilMDBase().
{
parent::ilMDBase($a_rbac_id,
$a_obj_id,
$a_obj_type);
}
Here is the call graph for this function:| ilMDDescription::ilMDDescription | ( | $ | a_rbac_id = 0, |
|
| $ | a_obj_id = 0, |
|||
| $ | a_obj_type = '' | |||
| ) |
Definition at line 35 of file class.ilMDDescription.php.
References ilMDBase::ilMDBase().
{
parent::ilMDBase($a_rbac_id,
$a_obj_id,
$a_obj_type);
}
Here is the call graph for this function:| ilMDDescription::read | ( | ) |
Definition at line 121 of file class.ilMDDescription.php.
References $query, $res, $row, ilMDBase::getMetaId(), setDescription(), setDescriptionLanguage(), ilMDBase::setObjId(), ilMDBase::setObjType(), ilMDBase::setParentId(), ilMDBase::setParentType(), ilMDBase::setRBACId(), and ilUtil::stripSlashes().
{
include_once 'Services/MetaData/classes/class.ilMDLanguageItem.php';
if($this->getMetaId())
{
$query = "SELECT * FROM il_meta_description ".
"WHERE meta_description_id = '".$this->getMetaId()."'";
$res = $this->db->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$this->setRBACId($row->rbac_id);
$this->setObjId($row->obj_id);
$this->setObjType($row->obj_type);
$this->setParentId($row->parent_id);
$this->setParentType($row->parent_type);
$this->setDescription(ilUtil::stripSlashes($row->description));
$this->setDescriptionLanguage(new ilMDLanguageItem($row->description_language));
}
}
return true;
}
Here is the call graph for this function:| ilMDDescription::read | ( | ) |
Definition at line 121 of file class.ilMDDescription.php.
References $query, $res, $row, ilMDBase::getMetaId(), setDescription(), setDescriptionLanguage(), ilMDBase::setObjId(), ilMDBase::setObjType(), ilMDBase::setParentId(), ilMDBase::setParentType(), ilMDBase::setRBACId(), and ilUtil::stripSlashes().
{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
if($this->getMetaId())
{
$query = "SELECT * FROM il_meta_description ".
"WHERE meta_description_id = '".$this->getMetaId()."'";
$res = $this->db->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$this->setRBACId($row->rbac_id);
$this->setObjId($row->obj_id);
$this->setObjType($row->obj_type);
$this->setParentId($row->parent_id);
$this->setParentType($row->parent_type);
$this->setDescription(ilUtil::stripSlashes($row->description));
$this->setDescriptionLanguage(new ilMDLanguageItem($row->description_language));
}
}
return true;
}
Here is the call graph for this function:| ilMDDescription::save | ( | ) |
Reimplemented from ilMDBase.
Definition at line 67 of file class.ilMDDescription.php.
References ilMDBase::getMetaId(), and ilMDBase::setMetaId().
{
if($this->db->autoExecute('il_meta_description',
$this->__getFields(),
DB_AUTOQUERY_INSERT))
{
$this->setMetaId($this->db->getLastInsertId());
return $this->getMetaId();
}
return false;
}
Here is the call graph for this function:| ilMDDescription::save | ( | ) |
Reimplemented from ilMDBase.
Definition at line 67 of file class.ilMDDescription.php.
References ilMDBase::getMetaId(), and ilMDBase::setMetaId().
{
if($this->db->autoExecute('il_meta_description',
$this->__getFields(),
DB_AUTOQUERY_INSERT))
{
$this->setMetaId($this->db->getLastInsertId());
return $this->getMetaId();
}
return false;
}
Here is the call graph for this function:| ilMDDescription::setDescription | ( | $ | a_description | ) |
Definition at line 43 of file class.ilMDDescription.php.
{
$this->description = $a_description;
}
| ilMDDescription::setDescription | ( | $ | a_description | ) |
Definition at line 43 of file class.ilMDDescription.php.
Referenced by read().
{
$this->description = $a_description;
}
Here is the caller graph for this function:| ilMDDescription::setDescriptionLanguage | ( | &$ | lng_obj | ) |
Definition at line 51 of file class.ilMDDescription.php.
Referenced by read().
{
if(is_object($lng_obj))
{
$this->description_language = $lng_obj;
}
}
Here is the caller graph for this function:| ilMDDescription::setDescriptionLanguage | ( | &$ | lng_obj | ) |
Definition at line 51 of file class.ilMDDescription.php.
{
if(is_object($lng_obj))
{
$this->description_language = $lng_obj;
}
}
| ilMDDescription::toXML | ( | &$ | writer | ) |
Reimplemented from ilMDBase.
Definition at line 150 of file class.ilMDDescription.php.
References getDescription(), and getDescriptionLanguageCode().
{
$writer->xmlElement('Description',array('Language' => $this->getDescriptionLanguageCode()),$this->getDescription());
}
Here is the call graph for this function:| ilMDDescription::toXML | ( | &$ | writer | ) |
Reimplemented from ilMDBase.
Definition at line 150 of file class.ilMDDescription.php.
References getDescription(), and getDescriptionLanguageCode().
{
$writer->xmlElement('Description',array('Language' => $this->getDescriptionLanguageCode()),$this->getDescription());
}
Here is the call graph for this function:| ilMDDescription::update | ( | ) |
Reimplemented from ilMDBase.
Definition at line 80 of file class.ilMDDescription.php.
References ilMDBase::getMetaId().
{
if($this->getMetaId())
{
if($this->db->autoExecute('il_meta_description',
$this->__getFields(),
DB_AUTOQUERY_UPDATE,
"meta_description_id = '".$this->getMetaId()."'"))
{
return true;
}
}
return false;
}
Here is the call graph for this function:| ilMDDescription::update | ( | ) |
Reimplemented from ilMDBase.
Definition at line 80 of file class.ilMDDescription.php.
References ilMDBase::getMetaId().
{
if($this->getMetaId())
{
if($this->db->autoExecute('il_meta_description',
$this->__getFields(),
DB_AUTOQUERY_UPDATE,
"meta_description_id = '".$this->getMetaId()."'"))
{
return true;
}
}
return false;
}
Here is the call graph for this function:
1.7.1