37 return $this->
raiseError(
'No valid reference id given.',
'Client');
40 $structureReaderClassname =
"ilSoap" . strtoupper($target_obj->getType()) .
"StructureReader";
41 $filename =
"./components/ILIAS/soap/classes/class." . $structureReaderClassname .
".php";
43 if (!file_exists($filename)) {
44 return $this->
raiseError(
"Object type '" . $target_obj->getType() .
"'is not supported.",
'Client');
48 $structureReader =
new $structureReaderClassname($target_obj);
50 $structureObject = &$structureReader->getStructureObject();
51 $xml_writer->setStructureObject($structureObject);
52 if (!$xml_writer->start()) {
53 return $this->
raiseError(
'Cannot create object xml !',
'Server');
55 return $xml_writer->getXML();
raiseError(string $a_message, $a_code)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getStructureObjects(string $sid, int $ref_id)
checkSession(string $sid)
static getInstanceByRefId(int $ref_id, bool $stop_on_error=true)
get an instance of an Ilias object by reference id