4include_once(
"./Services/COPage/classes/class.ilPageObject.php");
 
   49                $this->scormlmid = $a_scormlmid;
 
   59                return $this->scormlmid;
 
   69                $this->glossary_id = $a_val;
 
  102                include_once(
"./Services/COPage/Layout/classes/class.ilPageLayout.php");
 
  107                parent::setXMLContent($layout_obj->getXMLContent());
 
  118        function update($a_validate = 
true, $a_no_history = 
false)
 
  124                parent::update($a_validate, $a_no_history);
 
  168        function exportXML(&$a_xml_writer, $a_mode = 
"normal", $a_inst = 0)
 
  173                $a_xml_writer->xmlStartTag(
"PageObject", $attrs);
 
  179                                $ilBench->start(
"ContentObjectExport", 
"exportPageObject_XML_Meta");
 
  181                                $ilBench->stop(
"ContentObjectExport", 
"exportPageObject_XML_Meta");
 
  184                                $ilBench->start(
"ContentObjectExport", 
"exportPageObject_XML_PageContent");
 
  186                                $ilBench->stop(
"ContentObjectExport", 
"exportPageObject_XML_PageContent");
 
  191                                $attrs[
"OriginId"] = 
"il_".$a_inst.
 
  192                                        "_pg_".$this->getId();
 
  193                                $a_xml_writer->xmlElement(
"PageAlias", $attrs);
 
  197                $a_xml_writer->xmlEndTag(
"PageObject");
 
  227                include_once(
"Services/MetaData/classes/class.ilMD2XML.php");
 
  229                $md2xml->setExportMode(
true);
 
  230                $md2xml->startExport();
 
  231                $a_xml_writer->appendXML($md2xml->getXML());
 
  261                include_once(
"./Services/COPage/classes/class.ilPCFileList.php");
 
  264                $xml = str_replace(
"&",
"&", 
$xml);
 
  265                $a_xml_writer->appendXML(
$xml);
 
  309                        $path = 
"//IntLink[@Type='GlossaryItem']";
 
  311                        for ($i=0; $i < count(
$res->nodeset); $i++)
 
  313                                $target = 
$res->nodeset[$i]->get_attribute(
"Target");
 
  316                                $term_id = $tarr[count($tarr) - 1];
 
  317                                if (is_int(strpos(
$target, 
"__")) && $term_id > 0)
 
  319                                        include_once(
"./Modules/Glossary/classes/class.ilGlossaryTerm.php");
 
  325                                                $res->nodeset[$i]->set_attribute(
"Target", 
"il__git_".$new_id);
 
  344                $xpath = 
new DOMXPath($this->
getDomDoc());
 
  345                $nodes = $xpath->query(
'//Paragraph//IntLink');
 
  347                foreach($nodes as 
$node)
 
  349                        if (in_array(
$node->getAttribute(
"Type"), array(
"File", 
"GlossaryItem")))
 
  354                        $parent = 
$node->parentNode;
 
  356                        foreach (
$node->childNodes as $c)
 
  360                        foreach ($childs as $c)
 
  362                                $node->removeChild($c);
 
  363                                $parent->insertBefore($c, 
$node);
 
  366                foreach ($to_del as 
$n)
 
An exception for terminatinating execution or to throw for unit testing.
static _lookGlossaryID($term_id)
get glossary id form term id
static _copyTerm($a_term_id, $a_glossary_id)
Copy a term to a glossary.
static collectFileItems($a_page, $a_domdoc)
Get all file items that are used within the page.
getPageConfig()
Get page config object.
insertInstIntoIDs($a_inst, $a_res_ref_to_obj_id=true)
inserts installation id into ids (e.g.
getContentObject($a_hier_id, $a_pc_id="")
Get a content object of the page.
collectMediaObjects($a_inline_only=true)
get all media objects, that are referenced and used within the page
getDomDoc()
Get dom doc (php5 dom document)
getXMLFromDom($a_incl_head=false, $a_append_mobs=false, $a_append_bib=false, $a_append_str="", $a_omit_pageobject_tag=false)
get xml content of page from dom (use this, if any changes are made to the document)
create()
Create new scorm 2004.
getParentType()
Get parent type.
getGlossaryId()
Get glossary id.
getFileItemIds()
get ids of all file items within the page
exportXMLMetaData(&$a_xml_writer)
export page alias to xml
createWithLayoutId($a_layout_id)
Create new scorm 2004 with page-layout.
getMediaObjectIds()
get ids of all media objects within the page
removeInvalidLinks()
Remove invalid links.
setScormLmId($a_scormlmid)
Set Scorm LM ID.
exportXML(&$a_xml_writer, $a_mode="normal", $a_inst=0)
export page object to xml (see ilias_co.dtd)
exportXMLPageContent(&$a_xml_writer, $a_inst=0)
export page objects meta data to xml (see ilias_co.dtd)
performAutomaticModifications()
Perform automatic modifications (may be overwritten by sub classes)
setGlossaryId($a_val)
Set glossary id.
afterConstructor()
After constructor.
getScormLmId()
Get Scorm LM ID.
update($a_validate=true, $a_no_history=false)
update object data
xpath_eval($xpath_context, $eval_str, $contextnode=null)
xpath_new_context($dom_document)