31 include_once
'class.ilMDBase.php';
37 $subs[
'Identifier'] =
'meta_identifier';
38 $subs[
'Contribute'] =
'meta_contribute';
47 include_once
'Services/MetaData/classes/class.ilMDIdentifier.php';
53 include_once
'Services/MetaData/classes/class.ilMDIdentifier.php';
55 if (!$a_identifier_id) {
59 $ide->setMetaId($a_identifier_id);
65 include_once
'Services/MetaData/classes/class.ilMDIdentifier.php';
69 $ide->setParentType(
'meta_meta_data');
76 include_once
'Services/MetaData/classes/class.ilMDContribute.php';
82 include_once
'Services/MetaData/classes/class.ilMDContribute.php';
84 if (!$a_contribute_id) {
88 $con->setMetaId($a_contribute_id);
94 include_once
'Services/MetaData/classes/class.ilMDContribute.php';
98 $con->setParentType(
'meta_meta_data');
108 $this->meta_data_scheme = $a_val;
117 if (is_object($lng_obj)) {
118 $this->language = $lng_obj;
123 return is_object($this->language) ? $this->language :
false;
127 return is_object($this->language) ? $this->language->getLanguageCode() :
false;
136 $fields[
'meta_meta_data_id'] =
array(
'integer',$next_id = $ilDB->nextId(
'il_meta_meta_data'));
138 if ($this->db->insert(
'il_meta_meta_data', $fields)) {
150 if ($this->db->update(
152 $this->__getFields(),
161 public function delete()
166 $query =
"DELETE FROM il_meta_meta_data " .
167 "WHERE meta_meta_data_id = " . $ilDB->quote($this->
getMetaId(),
'integer');
200 include_once
'Services/MetaData/classes/class.ilMDLanguageItem.php';
204 $query =
"SELECT * FROM il_meta_meta_data " .
205 "WHERE meta_meta_data_id = " . $ilDB->quote($this->
getMetaId(),
'integer');
234 $writer->xmlStartTag(
'Meta-Metadata', $attr ? $attr : null);
238 foreach ($identifiers as
$id) {
240 $ide->toXML($writer);
242 if (!count($identifiers)) {
243 include_once
'Services/Metadata/classes/class.ilMDIdentifier.php';
245 $ide->toXML($writer);
250 foreach ($contributes as $id) {
252 $con->toXML($writer);
254 if (!count($contributes)) {
255 include_once
'Services/MetaData/classes/class.ilMDContribute.php';
257 $con->toXML($writer);
260 $writer->xmlEndTag(
'Meta-Metadata');
264 public static function _getId($a_rbac_id, $a_obj_id)
268 $query =
"SELECT meta_meta_data_id FROM il_meta_meta_data " .
269 "WHERE rbac_id = " . $ilDB->quote($a_rbac_id,
'integer') .
" " .
270 "AND obj_id = " . $ilDB->quote($a_obj_id,
'integer');
274 return $row->meta_meta_data_id;
static _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
static _getIds($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type)
if(!array_key_exists('StateId', $_REQUEST)) $id
setMetaId($a_meta_id, $a_read_data=true)
foreach($_POST as $key=> $value) $res
Create styles array
The data for the language used.