19 declare(strict_types=1);
47 $this->
xmlSetDtdDef(
"<!DOCTYPE result PUBLIC \"-//ILIAS//DTD XMLResultSet//EN\" \"" . ILIAS_HTTP_PATH .
"/components/ILIAS/Export/xml/ilias_xml_resultset_3_7.dtd\">");
55 foreach ($this->xmlResultSet->getColSpecs() as $colSpec) {
56 $attr = array(
"idx" => $colSpec->getIndex(),
"name" => $colSpec->getName());
66 foreach ($this->xmlResultSet->getRows() as $row) {
75 foreach ($xmlResultSetRow->
getColumns() as $value) {
XML Writer for XMLResultSet.
Row Class for XMLResultSet.
__construct(ilXMLResultSet $xmlResultSet)
xmlEndTag(string $tag)
Writes an endtag.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
appendRow(ilXMLResultSetRow $xmlResultSetRow)
xmlSetDtdDef(string $dtdDef)
Sets dtd definition.
xmlHeader()
Writes xml header.
ilXMLResultSet $xmlResultSet
__construct(Container $dic, ilPlugin $plugin)
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag.
xmlElement(string $tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content)
xmlDumpMem(bool $format=true)
Returns xml document from memory.