33 include_once(
'Services/Utilities/interfaces/interface.ilSaxSubsetParser.php');
34 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDFieldDefinition.php');
35 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDValues.php');
54 $this->obj_id = $a_new_obj_id;
66 $this->obj_id = $a_obj_id;
76 foreach($this->values_records as $values_record)
78 $values_record->write();
96 case 'AdvancedMetaData':
98 foreach($this->values_records as $values_record)
101 $values_record->getADTGroup();
103 foreach($values_record->getDefinitions() as $def)
105 $this->values[$def->getImportId()] = $def;
129 case 'AdvancedMetaData':
133 $value = trim($this->cdata);
134 if(is_object($this->current_value) && $value)
136 $this->current_value->importValueFromXML($value);
155 $a_data = preg_replace(
"/\t+/",
" ",$a_data);
157 $this->cdata .= $a_data;
170 if(isset($this->values[$a_import_id]))
172 $this->current_value = $this->values[$a_import_id];
176 $this->current_value = null;
__construct($a_new_obj_id=0)
Constructor.
static getInstancesForObjectId($a_obj_id, $a_obj_type=null, $a_sub_type="-", $a_sub_id=0)
Get instances for given object id.
initValue($a_import_id)
init new value object
setObjId($a_obj_id)
Set object id (id of new created object)
Create styles array
The data for the language used.
save()
Save values public.
Interface definition for sax subset parsers.
handlerCharacterData($a_xml_parser, $a_data)
Character data handler.
handlerBeginTag($a_xml_parser, $a_name, $a_attribs)
Start element handler.
handlerEndTag($a_xml_parser, $a_name)
End element handler.