Inheritance diagram for ilMDTaxon:
Collaboration diagram for ilMDTaxon:Public Member Functions | |
| ilMDTaxon ($a_rbac_id=0, $a_obj_id=0, $a_obj_type= '') | |
| setTaxon ($a_taxon) | |
| getTaxon () | |
| setTaxonLanguage (&$lng_obj) | |
| & | getTaxonLanguage () |
| getTaxonLanguageCode () | |
| setTaxonId ($a_taxon_id) | |
| getTaxonId () | |
| save () | |
| update () | |
| delete () | |
| __getFields () | |
| read () | |
| toXML (&$writer) | |
| _getIds ($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type) | |
| ilMDTaxon ($a_rbac_id=0, $a_obj_id=0, $a_obj_type= '') | |
| setTaxon ($a_taxon) | |
| getTaxon () | |
| setTaxonLanguage (&$lng_obj) | |
| & | getTaxonLanguage () |
| getTaxonLanguageCode () | |
| setTaxonId ($a_taxon_id) | |
| getTaxonId () | |
| 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.ilMDTaxon.php.
| ilMDTaxon::__getFields | ( | ) |
Definition at line 119 of file class.ilMDTaxon.php.
References ilMDBase::getObjId(), ilMDBase::getObjType(), ilMDBase::getParentId(), ilMDBase::getParentType(), ilMDBase::getRBACId(), getTaxon(), getTaxonId(), getTaxonLanguageCode(), 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(),
'taxon' => ilUtil::prepareDBString($this->getTaxon()),
'taxon_language' => ilUtil::prepareDBString($this->getTaxonLanguageCode()),
'taxon_id' => ilUtil::prepareDBString($this->getTaxonId()));
}
Here is the call graph for this function:| ilMDTaxon::__getFields | ( | ) |
Definition at line 119 of file class.ilMDTaxon.php.
References ilMDBase::getObjId(), ilMDBase::getObjType(), ilMDBase::getParentId(), ilMDBase::getParentType(), ilMDBase::getRBACId(), getTaxon(), getTaxonId(), getTaxonLanguageCode(), 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(),
'taxon' => ilUtil::prepareDBString($this->getTaxon()),
'taxon_language' => ilUtil::prepareDBString($this->getTaxonLanguageCode()),
'taxon_id' => ilUtil::prepareDBString($this->getTaxonId()));
}
Here is the call graph for this function:| ilMDTaxon::_getIds | ( | $ | a_rbac_id, | |
| $ | a_obj_id, | |||
| $ | a_parent_id, | |||
| $ | a_parent_type | |||
| ) |
Definition at line 169 of file class.ilMDTaxon.php.
References $query, $res, and $row.
{
global $ilDB;
$query = "SELECT meta_taxon_id FROM il_meta_taxon ".
"WHERE rbac_id = '".$a_rbac_id."' ".
"AND obj_id = '".$a_obj_id."' ".
"AND parent_id = '".$a_parent_id."' ".
"AND parent_type = '".$a_parent_type."'";
$res = $ilDB->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$ids[] = $row->meta_taxon_id;
}
return $ids ? $ids : array();
}
| ilMDTaxon::_getIds | ( | $ | a_rbac_id, | |
| $ | a_obj_id, | |||
| $ | a_parent_id, | |||
| $ | a_parent_type | |||
| ) |
Definition at line 169 of file class.ilMDTaxon.php.
References $query, $res, and $row.
{
global $ilDB;
$query = "SELECT meta_taxon_id FROM il_meta_taxon ".
"WHERE rbac_id = '".$a_rbac_id."' ".
"AND obj_id = '".$a_obj_id."' ".
"AND parent_id = '".$a_parent_id."' ".
"AND parent_type = '".$a_parent_type."'";
$res = $ilDB->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$ids[] = $row->meta_taxon_id;
}
return $ids ? $ids : array();
}
| ilMDTaxon::delete | ( | ) |
Reimplemented from ilMDBase.
Definition at line 104 of file class.ilMDTaxon.php.
References $query, and ilMDBase::getMetaId().
{
if($this->getMetaId())
{
$query = "DELETE FROM il_meta_taxon ".
"WHERE meta_taxon_id = '".$this->getMetaId()."'";
$this->db->query($query);
return true;
}
return false;
}
Here is the call graph for this function:| ilMDTaxon::delete | ( | ) |
Reimplemented from ilMDBase.
Definition at line 104 of file class.ilMDTaxon.php.
References $query, and ilMDBase::getMetaId().
{
if($this->getMetaId())
{
$query = "DELETE FROM il_meta_taxon ".
"WHERE meta_taxon_id = '".$this->getMetaId()."'";
$this->db->query($query);
return true;
}
return false;
}
Here is the call graph for this function:| ilMDTaxon::getTaxon | ( | ) |
Definition at line 47 of file class.ilMDTaxon.php.
Referenced by __getFields(), and toXML().
{
return $this->taxon;
}
Here is the caller graph for this function:| ilMDTaxon::getTaxon | ( | ) |
Definition at line 47 of file class.ilMDTaxon.php.
{
return $this->taxon;
}
| ilMDTaxon::getTaxonId | ( | ) |
Definition at line 70 of file class.ilMDTaxon.php.
Referenced by __getFields(), and toXML().
{
return $this->taxon_id;
}
Here is the caller graph for this function:| ilMDTaxon::getTaxonId | ( | ) |
Definition at line 70 of file class.ilMDTaxon.php.
{
return $this->taxon_id;
}
| & ilMDTaxon::getTaxonLanguage | ( | ) |
Definition at line 58 of file class.ilMDTaxon.php.
{
return is_object($this->taxon_language) ? $this->taxon_language : false;
}
| & ilMDTaxon::getTaxonLanguage | ( | ) |
Definition at line 58 of file class.ilMDTaxon.php.
{
return is_object($this->taxon_language) ? $this->taxon_language : false;
}
| ilMDTaxon::getTaxonLanguageCode | ( | ) |
Definition at line 62 of file class.ilMDTaxon.php.
{
return is_object($this->taxon_language) ? $this->taxon_language->getLanguageCode() : false;
}
| ilMDTaxon::getTaxonLanguageCode | ( | ) |
Definition at line 62 of file class.ilMDTaxon.php.
Referenced by __getFields(), and toXML().
{
return is_object($this->taxon_language) ? $this->taxon_language->getLanguageCode() : false;
}
Here is the caller graph for this function:| ilMDTaxon::ilMDTaxon | ( | $ | a_rbac_id = 0, |
|
| $ | a_obj_id = 0, |
|||
| $ | a_obj_type = '' | |||
| ) |
Definition at line 35 of file class.ilMDTaxon.php.
References ilMDBase::ilMDBase().
{
parent::ilMDBase($a_rbac_id,
$a_obj_id,
$a_obj_type);
}
Here is the call graph for this function:| ilMDTaxon::ilMDTaxon | ( | $ | a_rbac_id = 0, |
|
| $ | a_obj_id = 0, |
|||
| $ | a_obj_type = '' | |||
| ) |
Definition at line 35 of file class.ilMDTaxon.php.
References ilMDBase::ilMDBase().
{
parent::ilMDBase($a_rbac_id,
$a_obj_id,
$a_obj_type);
}
Here is the call graph for this function:| ilMDTaxon::read | ( | ) |
Definition at line 131 of file class.ilMDTaxon.php.
References $query, $res, $row, ilMDBase::getMetaId(), ilMDBase::setObjId(), ilMDBase::setObjType(), ilMDBase::setParentId(), ilMDBase::setParentType(), ilMDBase::setRBACId(), setTaxon(), setTaxonId(), and ilUtil::stripSlashes().
{
include_once 'Services/MetaData/classes/class.ilMDLanguageItem.php';
if($this->getMetaId())
{
$query = "SELECT * FROM il_meta_taxon ".
"WHERE meta_taxon_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->setTaxon(ilUtil::stripSlashes($row->taxon));
$this->taxon_language = new ilMDLanguageItem($row->taxon_language);
$this->setTaxonId(ilUtil::stripSlashes($row->taxon_id));
}
}
return true;
}
Here is the call graph for this function:| ilMDTaxon::read | ( | ) |
Definition at line 131 of file class.ilMDTaxon.php.
References $query, $res, $row, ilMDBase::getMetaId(), ilMDBase::setObjId(), ilMDBase::setObjType(), ilMDBase::setParentId(), ilMDBase::setParentType(), ilMDBase::setRBACId(), setTaxon(), setTaxonId(), and ilUtil::stripSlashes().
{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
if($this->getMetaId())
{
$query = "SELECT * FROM il_meta_taxon ".
"WHERE meta_taxon_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->setTaxon(ilUtil::stripSlashes($row->taxon));
$this->taxon_language = new ilMDLanguageItem($row->taxon_language);
$this->setTaxonId(ilUtil::stripSlashes($row->taxon_id));
}
}
return true;
}
Here is the call graph for this function:| ilMDTaxon::save | ( | ) |
Reimplemented from ilMDBase.
Definition at line 76 of file class.ilMDTaxon.php.
References ilMDBase::getMetaId(), and ilMDBase::setMetaId().
{
if($this->db->autoExecute('il_meta_taxon',
$this->__getFields(),
DB_AUTOQUERY_INSERT))
{
$this->setMetaId($this->db->getLastInsertId());
return $this->getMetaId();
}
return false;
}
Here is the call graph for this function:| ilMDTaxon::save | ( | ) |
Reimplemented from ilMDBase.
Definition at line 76 of file class.ilMDTaxon.php.
References ilMDBase::getMetaId(), and ilMDBase::setMetaId().
{
if($this->db->autoExecute('il_meta_taxon',
$this->__getFields(),
DB_AUTOQUERY_INSERT))
{
$this->setMetaId($this->db->getLastInsertId());
return $this->getMetaId();
}
return false;
}
Here is the call graph for this function:| ilMDTaxon::setTaxon | ( | $ | a_taxon | ) |
Definition at line 43 of file class.ilMDTaxon.php.
{
$this->taxon = $a_taxon;
}
| ilMDTaxon::setTaxon | ( | $ | a_taxon | ) |
Definition at line 43 of file class.ilMDTaxon.php.
Referenced by read().
{
$this->taxon = $a_taxon;
}
Here is the caller graph for this function:| ilMDTaxon::setTaxonId | ( | $ | a_taxon_id | ) |
Definition at line 66 of file class.ilMDTaxon.php.
{
$this->taxon_id = $a_taxon_id;
}
| ilMDTaxon::setTaxonId | ( | $ | a_taxon_id | ) |
Definition at line 66 of file class.ilMDTaxon.php.
Referenced by read().
{
$this->taxon_id = $a_taxon_id;
}
Here is the caller graph for this function:| ilMDTaxon::setTaxonLanguage | ( | &$ | lng_obj | ) |
Definition at line 51 of file class.ilMDTaxon.php.
{
if(is_object($lng_obj))
{
$this->taxon_language = $lng_obj;
}
}
| ilMDTaxon::setTaxonLanguage | ( | &$ | lng_obj | ) |
Definition at line 51 of file class.ilMDTaxon.php.
{
if(is_object($lng_obj))
{
$this->taxon_language = $lng_obj;
}
}
| ilMDTaxon::toXML | ( | &$ | writer | ) |
Reimplemented from ilMDBase.
Definition at line 161 of file class.ilMDTaxon.php.
References getTaxon(), getTaxonId(), and getTaxonLanguageCode().
{
$writer->xmlElement('Taxon',array('Language' => $this->getTaxonLanguageCode(),
'Id' => $this->getTaxonId()),$this->getTaxon());
}
Here is the call graph for this function:| ilMDTaxon::toXML | ( | &$ | writer | ) |
Reimplemented from ilMDBase.
Definition at line 161 of file class.ilMDTaxon.php.
References getTaxon(), getTaxonId(), and getTaxonLanguageCode().
{
$writer->xmlElement('Taxon',array('Language' => $this->getTaxonLanguageCode(),
'Id' => $this->getTaxonId()),$this->getTaxon());
}
Here is the call graph for this function:| ilMDTaxon::update | ( | ) |
Reimplemented from ilMDBase.
Definition at line 89 of file class.ilMDTaxon.php.
References ilMDBase::getMetaId().
{
if($this->getMetaId())
{
if($this->db->autoExecute('il_meta_taxon',
$this->__getFields(),
DB_AUTOQUERY_UPDATE,
"meta_taxon_id = '".$this->getMetaId()."'"))
{
return true;
}
}
return false;
}
Here is the call graph for this function:| ilMDTaxon::update | ( | ) |
Reimplemented from ilMDBase.
Definition at line 89 of file class.ilMDTaxon.php.
References ilMDBase::getMetaId().
{
if($this->getMetaId())
{
if($this->db->autoExecute('il_meta_taxon',
$this->__getFields(),
DB_AUTOQUERY_UPDATE,
"meta_taxon_id = '".$this->getMetaId()."'"))
{
return true;
}
}
return false;
}
Here is the call graph for this function:
1.7.1