3 declare(strict_types=1);
36 $subs[
'Identifier'] =
'meta_identifier';
37 $subs[
'Contribute'] =
'meta_contribute';
54 if (!$a_identifier_id) {
58 $ide->setMetaId($a_identifier_id);
67 $ide->setParentType(
'meta_meta_data');
82 if (!$a_contribute_id) {
86 $con->setMetaId($a_contribute_id);
95 $con->setParentType(
'meta_meta_data');
104 $this->meta_data_scheme = $a_val;
125 return is_object($this->
language) ? $this->
language->getLanguageCode() :
'';
131 $fields[
'meta_meta_data_id'] = array(
'integer', $next_id = $this->db->nextId(
'il_meta_meta_data'));
133 if ($this->db->insert(
'il_meta_meta_data', $fields)) {
142 return $this->
getMetaId() && $this->db->update(
145 array(
"meta_meta_data_id" => array(
'integer', $this->
getMetaId()))
149 public function delete():
bool 152 $query =
"DELETE FROM il_meta_meta_data " .
153 "WHERE meta_meta_data_id = " . $this->db->quote($this->
getMetaId(),
'integer');
177 'rbac_id' => array(
'integer', $this->
getRBACId()),
178 'obj_id' => array(
'integer', $this->
getObjId()),
179 'obj_type' => array(
'text', $this->
getObjType()),
188 $query =
"SELECT * FROM il_meta_meta_data " .
189 "WHERE meta_meta_data_id = " . $this->db->quote($this->
getMetaId(),
'integer');
194 $this->
setObjId((
int) $row->obj_id);
217 foreach ($identifiers as
$id) {
219 $ide->toXML($writer);
221 if (!count($identifiers)) {
223 $ide->toXML($writer);
228 foreach ($contributes as $id) {
230 $con->toXML($writer);
232 if (!count($contributes)) {
234 $con->toXML($writer);
241 public static function _getId(
int $a_rbac_id,
int $a_obj_id):
int 245 $ilDB = $DIC->database();
247 $query =
"SELECT meta_meta_data_id FROM il_meta_meta_data " .
248 "WHERE rbac_id = " .
$ilDB->quote($a_rbac_id,
'integer') .
" " .
249 "AND obj_id = " .
$ilDB->quote($a_obj_id,
'integer');
253 return (
int) $row->meta_meta_data_id;
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.
static _getIds(int $a_rbac_id, int $a_obj_id, int $a_parent_id, string $a_parent_type)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag.
setMetaId(int $a_meta_id, bool $a_read_data=true)
setObjType(string $a_type)