Export file parser.
More...
◆ __construct()
ilExportFileParser::__construct |
( |
string |
$a_file, |
|
|
object |
$a_callback_obj, |
|
|
string |
$a_callback_func |
|
) |
| |
◆ handleBeginTag()
ilExportFileParser::handleBeginTag |
( |
|
$a_xml_parser, |
|
|
string |
$a_name, |
|
|
array |
$a_attribs |
|
) |
| |
Definition at line 70 of file class.ilExportFileParser.php.
72 if ($this->in_export_item) {
73 $this->export_item_writer->xmlStartTag($a_name, $a_attribs);
78 $this->entity = $a_attribs[
"Entity"];
79 $this->install_id = $a_attribs[
"InstallationId"];
80 $this->install_url = $a_attribs[
"InstallationUrl"];
81 $this->schema_version = $a_attribs[
"SchemaVersion"];
84 case "exp:ExportItem":
85 $this->in_export_item =
true;
86 $this->current_id = $a_attribs[
"Id"];
89 $this->expfiles[] = array(
90 "component" => $a_attribs[
"Component"] ?? null,
91 "path" => $a_attribs[
"Path"] ?? null
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ handleCharacterData()
ilExportFileParser::handleCharacterData |
( |
|
$a_xml_parser, |
|
|
string |
$a_data |
|
) |
| |
End Tag.
Definition at line 125 of file class.ilExportFileParser.php.
127 $this->chr_data .= $a_data;
128 if ($this->in_export_item) {
129 $this->export_item_writer->xmlData($a_data);
◆ handleEndTag()
ilExportFileParser::handleEndTag |
( |
|
$a_xml_parser, |
|
|
string |
$a_name |
|
) |
| |
Definition at line 97 of file class.ilExportFileParser.php.
References $callback_func, $install_id, and $install_url.
100 case "exp:ExportItem":
101 $this->in_export_item =
false;
103 $this->callback_obj->$cf(
105 $this->schema_version,
107 $this->export_item_writer->xmlDumpMem(
false),
115 if ($this->in_export_item) {
116 $this->export_item_writer->xmlEndTag($a_name);
119 $this->chr_data =
"";
◆ setHandlers()
ilExportFileParser::setHandlers |
( |
|
$a_xml_parser | ) |
|
Definition at line 55 of file class.ilExportFileParser.php.
57 xml_set_object($a_xml_parser, $this);
58 xml_set_element_handler($a_xml_parser,
'handleBeginTag',
'handleEndTag');
59 xml_set_character_data_handler($a_xml_parser,
'handleCharacterData');
◆ startParsing()
ilExportFileParser::startParsing |
( |
| ) |
|
◆ $callback_func
string ilExportFileParser::$callback_func |
|
private |
◆ $callback_obj
object ilExportFileParser::$callback_obj |
|
private |
◆ $chr_data
string ilExportFileParser::$chr_data = "" |
|
protected |
◆ $current_id
string ilExportFileParser::$current_id = '' |
|
private |
◆ $entity
string ilExportFileParser::$entity = '' |
|
private |
◆ $expfiles
array ilExportFileParser::$expfiles = [] |
|
private |
◆ $export_item_writer
ilXmlWriter ilExportFileParser::$export_item_writer = null |
|
private |
◆ $in_export_item
bool ilExportFileParser::$in_export_item = false |
|
protected |
◆ $install_id
string ilExportFileParser::$install_id = '' |
|
private |
◆ $install_url
string ilExportFileParser::$install_url = '' |
|
private |
◆ $item_xml
string ilExportFileParser::$item_xml = "" |
|
protected |
◆ $schema_version
string ilExportFileParser::$schema_version = '' |
|
private |
The documentation for this class was generated from the following file: