19 declare(strict_types=1);
    50         $tax->setMetaId($a_taxon_id);
    59         $tax->setParentType(
'meta_taxon_path');
    67         $this->source = $a_source;
    77         $this->source_language = $lng_obj;
    82         return is_object($this->source_language) ? $this->source_language : null;
    87         return is_object($this->source_language) ? $this->source_language->getLanguageCode() : 
'';
    93         $fields[
'meta_taxon_path_id'] = array(
'integer', $next_id = $this->db->nextId(
'il_meta_taxon_path'));
    95         if ($this->db->insert(
'il_meta_taxon_path', $fields)) {
   104         return $this->
getMetaId() && $this->db->update(
   105             'il_meta_taxon_path',
   107             array(
"meta_taxon_path_id" => array(
'integer', $this->
getMetaId()))
   111     public function delete(): 
bool   114             $query = 
"DELETE FROM il_meta_taxon_path " .
   115                 "WHERE meta_taxon_path_id = " . $this->db->quote($this->
getMetaId(), 
'integer');
   116             $res = $this->db->manipulate($query);
   134             'rbac_id' => array(
'integer', $this->
getRBACId()),
   135             'obj_id' => array(
'integer', $this->
getObjId()),
   136             'obj_type' => array(
'text', $this->
getObjType()),
   138             'parent_id' => array(
'integer', $this->
getParentId()),
   139             'source' => array(
'text', $this->
getSource()),
   147             $query = 
"SELECT * FROM il_meta_taxon_path " .
   148                 "WHERE meta_taxon_path_id = " . $this->db->quote($this->
getMetaId(), 
'integer');
   150             $res = $this->db->query($query);
   153                 $this->
setObjId((
int) $row->obj_id);
   178         foreach ($taxs as 
$id) {
   180             $tax->toXML($writer);
   184             $tax->toXML($writer);
   193     public static function _getIds(
int $a_rbac_id, 
int $a_obj_id, 
int $a_parent_id, 
string $a_parent_type): array
   197         $ilDB = $DIC->database();
   199         $query = 
"SELECT meta_taxon_path_id FROM il_meta_taxon_path " .
   200             "WHERE rbac_id = " . 
$ilDB->quote($a_rbac_id, 
'integer') . 
" " .
   201             "AND obj_id = " . 
$ilDB->quote($a_obj_id, 
'integer') . 
" " .
   202             "AND parent_id = " . 
$ilDB->quote($a_parent_id, 
'integer') . 
" " .
   203             "AND parent_type = " . 
$ilDB->quote($a_parent_type, 
'text');
   208             $ids[] = (
int) $row->meta_taxon_path_id;
 
static _getIds(int $a_rbac_id, int $a_obj_id, int $a_parent_id, string $a_parent_type)
 
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...
 
xmlEndTag(string $tag)
Writes an endtag. 
 
ilMDLanguageItem $source_language
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag. 
 
setParentType(string $a_parent_type)
 
setSource(string $a_source)
 
setSourceLanguage(ilMDLanguageItem $lng_obj)
 
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)
 
getTaxon(int $a_taxon_id)
 
setObjType(string $a_type)
 
toXML(ilXmlWriter $writer)