3 declare(strict_types=1);
34 $this->catalog = $a_catalog;
42 public function setEntry(
string $a_entry): void
44 $this->entry = $a_entry;
55 $fields[
'meta_identifier__id'] = array(
'integer', $next_id = $this->db->nextId(
'il_meta_identifier_'));
57 if ($this->db->insert(
'il_meta_identifier_', $fields)) {
66 return $this->
getMetaId() && $this->db->update(
67 'il_meta_identifier_',
69 array(
"meta_identifier__id" => array(
'integer', $this->
getMetaId()))
73 public function delete():
bool 76 $query =
"DELETE FROM il_meta_identifier_ " .
77 "WHERE meta_identifier__id = " . $this->db->quote($this->
getMetaId(),
'integer');
90 'rbac_id' => array(
'integer', $this->
getRBACId()),
91 'obj_id' => array(
'integer', $this->
getObjId()),
92 'obj_type' => array(
'text', $this->
getObjType()),
94 'parent_id' => array(
'integer', $this->
getParentId()),
95 'catalog' => array(
'text', $this->
getCatalog()),
96 'entry' => array(
'text', $this->
getEntry())
103 $query =
"SELECT * FROM il_meta_identifier_ " .
104 "WHERE meta_identifier__id = " . $this->db->quote($this->
getMetaId(),
'integer');
109 $this->
setObjId((
int) $row->obj_id);
124 'Entry' => $this->
getEntry() ?:
"ID1" 133 public static function _getIds(
int $a_rbac_id,
int $a_obj_id,
int $a_parent_id,
string $a_parent_type): array
137 $ilDB = $DIC->database();
139 $query =
"SELECT meta_identifier__id FROM il_meta_identifier_ " .
140 "WHERE rbac_id = " .
$ilDB->quote($a_rbac_id,
'integer') .
" " .
141 "AND obj_id = " .
$ilDB->quote($a_obj_id,
'integer') .
" " .
142 "AND parent_id = " .
$ilDB->quote($a_parent_id,
'integer') .
" " .
143 "AND parent_type = " .
$ilDB->quote($a_parent_type,
'text');
148 $ids[] = (
int) $row->meta_identifier__id;
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getIds(int $a_rbac_id, int $a_obj_id, int $a_parent_id, string $a_parent_type)
toXML(ilXmlWriter $writer)
setEntry(string $a_entry)
setCatalog(string $a_catalog)
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)