19 declare(strict_types=1);
    33     public function setTaxon(
string $a_taxon): void
    35         $this->taxon = $a_taxon;
    45         $this->taxon_language = $lng_obj;
    50         return is_object($this->taxon_language) ? $this->taxon_language : null;
    55         return is_object($this->taxon_language) ? $this->taxon_language->getLanguageCode() : 
'';
    60         $this->taxon_id = $a_taxon_id;
    71         $fields[
'meta_taxon_id'] = array(
'integer', $next_id = $this->db->nextId(
'il_meta_taxon'));
    73         if ($this->db->insert(
'il_meta_taxon', $fields)) {
    82         return $this->
getMetaId() && $this->db->update(
    85             array(
"meta_taxon_id" => array(
'integer', $this->
getMetaId()))
    89     public function delete(): 
bool    92             $query = 
"DELETE FROM il_meta_taxon " .
    93                 "WHERE meta_taxon_id = " . $this->db->quote($this->
getMetaId(), 
'integer');
    95             $this->db->query($query);
   108             'rbac_id' => array(
'integer', $this->
getRBACId()),
   109             'obj_id' => array(
'integer', $this->
getObjId()),
   110             'obj_type' => array(
'text', $this->
getObjType()),
   112             'parent_id' => array(
'integer', $this->
getParentId()),
   113             'taxon' => array(
'text', $this->
getTaxon()),
   115             'taxon_id' => array(
'text', $this->
getTaxonId())
   122             $query = 
"SELECT * FROM il_meta_taxon " .
   123                 "WHERE meta_taxon_id = " . $this->db->quote($this->
getMetaId(), 
'integer');
   125             $res = $this->db->query($query);
   128                 $this->
setObjId((
int) $row->obj_id);
   142         $random = new \ilRandom();
   147                 'Id' => $this->
getTaxonId() ?: (
"ID" . $random->int())
   158     public static function _getIds(
int $a_rbac_id, 
int $a_obj_id, 
int $a_parent_id, 
string $a_parent_type): array
   162         $ilDB = $DIC->database();
   164         $query = 
"SELECT meta_taxon_id FROM il_meta_taxon " .
   165             "WHERE rbac_id = " . 
$ilDB->quote($a_rbac_id, 
'integer') . 
" " .
   166             "AND obj_id = " . 
$ilDB->quote($a_obj_id, 
'integer') . 
" " .
   167             "AND parent_id = " . 
$ilDB->quote($a_parent_id, 
'integer') . 
" " .
   168             "AND parent_type = " . 
$ilDB->quote($a_parent_type, 
'text');
   173             $ids[] = (
int) $row->meta_taxon_id;
 
ilMDLanguageItem $taxon_language
 
setTaxonId(string $a_taxon_id)
 
setTaxonLanguage(ilMDLanguageItem $lng_obj)
 
static _getIds(int $a_rbac_id, int $a_obj_id, int $a_parent_id, string $a_parent_type)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setTaxon(string $a_taxon)
 
toXML(ilXmlWriter $writer)
 
setParentType(string $a_parent_type)
 
xmlElement(string $tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content) 
 
setMetaId(int $a_meta_id, bool $a_read_data=true)
 
setObjType(string $a_type)