ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilLOXmlWriter. More...
Public Member Functions | |
__construct (ilObjCourse $course, $a_xml) | |
Constructor. More... | |
setMapping (ilImportMapping $mapping) | |
Set import mapping. More... | |
getMapping () | |
Get import mapping. More... | |
parse () | |
Parse xml. More... | |
parseObjectDependencies () | |
Parse object dependencies (assigned strucure objects, page objects, fixed questions) More... | |
Data Fields | |
const | TYPE_TST_PO = 1 |
const | TYPE_TST_ALL = 2 |
const | TYPE_TST_RND = 3 |
Protected Member Functions | |
getCourse () | |
Get course. More... | |
parseSettings (SimpleXMLElement $root) | |
parseObjectives (SimpleXMLElement $root) | |
Parse objective. More... | |
parseMaterials (SimpleXMLElement $obj, $a_objective_id) | |
Parse assigned materials. More... | |
parseTests (SimpleXMLElement $obj, $a_objective_id) | |
Parse tests of objective. More... | |
getMappingInfoForItem ($a_ref_id) | |
Get mapping info. More... | |
getMappingInfoForItemObject ($a_obj_id) | |
Get obj_id mapping. More... | |
getMappingForQuestion ($qid) | |
getMappingForQpls ($a_id) | |
parseXmlErrors () | |
Parse xml errors from libxml_get_errors. More... | |
Private Attributes | |
$xml = '' | |
$course = null | |
$mapping = null | |
Class ilLOXmlWriter.
Definition at line 12 of file class.ilLOXmlParser.php.
ilLOXmlParser::__construct | ( | ilObjCourse | $course, |
$a_xml | |||
) |
Constructor.
ilObjCourse | $course | |
type | $a_xml |
Definition at line 28 of file class.ilLOXmlParser.php.
References $course.
|
protected |
Get course.
Definition at line 56 of file class.ilLOXmlParser.php.
References $course.
Referenced by parseObjectives(), parseSettings(), and parseTests().
ilLOXmlParser::getMapping | ( | ) |
Get import mapping.
Definition at line 47 of file class.ilLOXmlParser.php.
References $mapping.
Referenced by getMappingForQpls(), getMappingForQuestion(), getMappingInfoForItem(), getMappingInfoForItemObject(), parseMaterials(), parseObjectDependencies(), and parseObjectives().
|
protected |
Definition at line 313 of file class.ilLOXmlParser.php.
References getMapping().
Referenced by parseTests().
|
protected |
Definition at line 306 of file class.ilLOXmlParser.php.
References $GLOBALS, and getMapping().
Referenced by parseTests().
|
protected |
Get mapping info.
type | $a_ref_id | |
type | $a_obj_id |
Definition at line 287 of file class.ilLOXmlParser.php.
References $GLOBALS, and getMapping().
Referenced by parseMaterials(), parseSettings(), and parseTests().
|
protected |
Get obj_id mapping.
int | $a_obj_id |
Definition at line 299 of file class.ilLOXmlParser.php.
References $GLOBALS, and getMapping().
Referenced by parseTests().
ilLOXmlParser::parse | ( | ) |
Parse xml.
Definition at line 64 of file class.ilLOXmlParser.php.
References $GLOBALS, $root, parseObjectives(), parseSettings(), and parseXmlErrors().
|
protected |
Parse assigned materials.
SimpleXMLElement | $obj |
Definition at line 158 of file class.ilLOXmlParser.php.
References ilObject\_lookupObjId(), getMapping(), and getMappingInfoForItem().
Referenced by parseObjectDependencies().
ilLOXmlParser::parseObjectDependencies | ( | ) |
Parse object dependencies (assigned strucure objects, page objects, fixed questions)
Definition at line 81 of file class.ilLOXmlParser.php.
References $GLOBALS, $root, getMapping(), parseMaterials(), parseTests(), and parseXmlErrors().
|
protected |
Parse objective.
SimpleXMLElement | $root |
Definition at line 134 of file class.ilLOXmlParser.php.
References getCourse(), and getMapping().
Referenced by parse().
|
protected |
SimpleXMLElement | $root |
Definition at line 104 of file class.ilLOXmlParser.php.
References $GLOBALS, getCourse(), ilLOSettings\getInstanceByObjId(), and getMappingInfoForItem().
Referenced by parse().
|
protected |
Parse tests of objective.
SimpleXMLElement | $obj | |
type | $a_objective_id |
Definition at line 213 of file class.ilLOXmlParser.php.
References $GLOBALS, $type, ilObject\_lookupObjId(), getCourse(), getMappingForQpls(), getMappingForQuestion(), getMappingInfoForItem(), and getMappingInfoForItemObject().
Referenced by parseObjectDependencies().
|
protected |
Parse xml errors from libxml_get_errors.
Definition at line 334 of file class.ilLOXmlParser.php.
References $errors.
Referenced by parse(), and parseObjectDependencies().
ilLOXmlParser::setMapping | ( | ilImportMapping | $mapping | ) |
Set import mapping.
ilImportMapping | $mapping |
Definition at line 38 of file class.ilLOXmlParser.php.
References $mapping.
|
private |
Definition at line 20 of file class.ilLOXmlParser.php.
Referenced by __construct(), and getCourse().
|
private |
Definition at line 21 of file class.ilLOXmlParser.php.
Referenced by getMapping(), and setMapping().
|
private |
Definition at line 19 of file class.ilLOXmlParser.php.
const ilLOXmlParser::TYPE_TST_ALL = 2 |
Definition at line 15 of file class.ilLOXmlParser.php.
const ilLOXmlParser::TYPE_TST_PO = 1 |
Definition at line 14 of file class.ilLOXmlParser.php.
const ilLOXmlParser::TYPE_TST_RND = 3 |
Definition at line 16 of file class.ilLOXmlParser.php.