ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
inc.xml5compliance.php File Reference

Go to the source code of this file.

Data Structures

class  php4DOMAttr
 
class  php4DOMCDATASection
 
class  php4DOMDocument
 
class  php4DOMElement
 php4DomElement More...
 
class  php4DOMNode
 php4DOMNode More...
 
class  php4DOMNodelist
 
class  php4DOMXPath
 

Functions

 staticxmlerror ($errno, $errstr, $errfile, $errline, $errcontext, $ret=false)
 
 domxml_open_file ($filename)
 
 domxml_open_mem ($str, $mode=0, &$error=NULL)
 
 xpath_eval ($xpath_context, $eval_str, $contextnode=null)
 
 xpath_new_context ($dom_document)
 

Function Documentation

◆ domxml_open_file()

domxml_open_file (   $filename)

Definition at line 35 of file inc.xml5compliance.php.

References $filename.

◆ domxml_open_mem()

domxml_open_mem (   $str,
  $mode = 0,
$error = NULL 
)

Definition at line 43 of file inc.xml5compliance.php.

References $error.

Referenced by ilPageObject\buildDom(), ilPageObject\copyXmlContent(), ilPageLayout\generatePreview(), ilPCTable\importHtml(), ilSoapUserAdministration\importUsers(), ilNestedSetXML\initDom(), ilLMPresentationGUI\layout(), ilPCParagraph\linkTermsInDom(), ilPageObject\pasteContents(), ilPCSection\saveTimings(), ilPCDataTable\setData(), ilPCParagraph\setText(), and ilSoapUtils\validateXML().

44 {
45  if (!is_int($mode))
46  {
47  $mode = 0;
48  }
49  $doc = new php4DOMDocument($str, false, $mode);
50  if (!$doc->success)
51  {
52  $error = $doc->error;
53  }
54 
55  return $doc;
56 }
$error
Definition: Error.php:17
+ Here is the caller graph for this function:

◆ staticxmlerror()

staticxmlerror (   $errno,
  $errstr,
  $errfile,
  $errline,
  $errcontext,
  $ret = false 
)

Definition at line 23 of file inc.xml5compliance.php.

References $ret, and array.

Referenced by php4DOMDocument\__construct().

24 {
25  static $errs = array();
26 
27  if ($ret === true) {
28  return $errs;
29  }
30 
31  $tag = 'DOMDocument::validate(): ';
32  $errs[] = str_replace($tag, '', $errstr);
33 }
Create styles array
The data for the language used.
$ret
Definition: parser.php:6
+ Here is the caller graph for this function:

◆ xpath_eval()

xpath_eval (   $xpath_context,
  $eval_str,
  $contextnode = null 
)

Definition at line 58 of file inc.xml5compliance.php.

Referenced by ilPageObject\addChangeDivClasses(), ilPageObject\addFileSizes(), ilPageObject\addHierIDs(), ilPageObject\buildDom(), ilPageObject\checkForTag(), ilPageObject\checkPCIds(), ilPageObject\collectMediaObjects(), ilPageObject\countPageContents(), ilMediaAliasItem\deleteAllMapAreas(), ilPCDataTableGUI\editData(), ilPCDataTableGUI\editDataCl(), ilPageObject\existsPCId(), ilPageLayout\generatePreview(), ilPageObject\getAllFileObjIds(), ilPageObject\getAllPCIds(), ilPCTable\getCaption(), ilPCTable\getCaptionAlign(), ilPCDataTable\getCellNode(), ilPageObject\getContentNode(), ilPageObject\getFirstParagraphText(), ilPageObject\getHierIdsForPCIds(), ilPageObject\getInitialOpenedContent(), ilPageObject\getInternalLinks(), ilLMPresentationGUI\getLayoutLinkTargets(), ilMediaAliasItem\getMAItemNode(), ilMediaAliasItem\getMapAreaNodes(), ilPageObject\getMediaAliasElement(), ilPageObject\getPageContentsHashes(), ilMediaAliasItem\getParameterNodes(), ilPageObject\getQuestionIds(), ilPCInteractiveImage\getTriggerNodes(), ilPageObject\handleImportRepositoryLink(), ilPageObject\handleRepositoryLinksOnCopy(), ilPCTable\importHtml(), ilMediaAliasItem\insert(), ilPageObject\insertInstIntoIDs(), ilPageObject\insertPCIds(), ilLMPresentationGUI\layout(), ilPageObject\lookforhier(), ilPCSourceCode\modifyPageContentPostXsl(), ilPageObject\moveIntLinks(), ilPageObject\newIIMCopies(), ilPageObject\newMobCopies(), ilPageObject\newQuestionCopies(), ilPageObject\pasteContents(), ilSCORM2004Page\performAutomaticModifications(), ilPageObject\removeQuestions(), ilPageObject\resolveFileItems(), ilPageObject\resolveIIMMediaAliases(), ilPageObject\resolveIntLinks(), ilPageObject\resolveMediaAliases(), ilPageObject\resolveQuestionReferences(), ilPageObject\saveInitialOpenedContent(), ilPCSection\saveTimings(), ilPageObject\send_paragraph(), ilPCDataTable\setData(), ilPCInteractiveImage\setExtLinkTitle(), ilPCTable\setTDAlignment(), ilPCTable\setTDClass(), ilPCTable\setTDWidth(), ilPCParagraph\setText(), ilPageObject\stripHierIDs(), and php4DOMXPath\xpath_eval().

59 {
60  return $xpath_context->query($eval_str,$contextnode);
61 }
+ Here is the caller graph for this function:

◆ xpath_new_context()

xpath_new_context (   $dom_document)

Definition at line 63 of file inc.xml5compliance.php.

Referenced by ilPageObject\addChangeDivClasses(), ilPageObject\addFileSizes(), ilPageObject\addHierIDs(), ilPageObject\buildDom(), ilPageObject\checkForTag(), ilPageObject\checkPCIds(), ilPageObject\collectMediaObjects(), ilPageObject\countPageContents(), ilMediaAliasItem\deleteAllMapAreas(), ilPCDataTableGUI\editData(), ilPCDataTableGUI\editDataCl(), ilPageObject\existsPCId(), ilPageLayout\generatePreview(), ilPageObject\getAllFileObjIds(), ilPageObject\getAllPCIds(), ilPCTable\getCaption(), ilPCTable\getCaptionAlign(), ilPCDataTable\getCellNode(), ilPageObject\getContentNode(), ilPageObject\getFirstParagraphText(), ilPageObject\getHierIdsForPCIds(), ilPageObject\getInitialOpenedContent(), ilPageObject\getInternalLinks(), ilLMPresentationGUI\getLayoutLinkTargets(), ilMediaAliasItem\getMAItemNode(), ilMediaAliasItem\getMapAreaNodes(), ilPageObject\getMediaAliasElement(), ilPageObject\getPageContentsHashes(), ilMediaAliasItem\getParameterNodes(), ilPageObject\getQuestionIds(), ilPCInteractiveImage\getTriggerNodes(), ilPageObject\handleImportRepositoryLink(), ilPageObject\handleRepositoryLinksOnCopy(), ilPCTable\importHtml(), ilMediaAliasItem\insert(), ilPageObject\insertInstIntoIDs(), ilPageObject\insertPCIds(), ilLMPresentationGUI\layout(), ilPageObject\lookforhier(), ilPCSourceCode\modifyPageContentPostXsl(), ilPageObject\moveIntLinks(), ilPageObject\newIIMCopies(), ilPageObject\newMobCopies(), ilPageObject\newQuestionCopies(), ilPageObject\pasteContents(), ilSCORM2004Page\performAutomaticModifications(), ilPageObject\removeQuestions(), ilPageObject\resolveFileItems(), ilPageObject\resolveIIMMediaAliases(), ilPageObject\resolveIntLinks(), ilPageObject\resolveMediaAliases(), ilPageObject\resolveQuestionReferences(), ilPageObject\saveInitialOpenedContent(), ilPCSection\saveTimings(), ilPageObject\send_paragraph(), ilPCDataTable\setData(), ilPCInteractiveImage\setExtLinkTitle(), ilPCTable\setTDAlignment(), ilPCTable\setTDClass(), ilPCTable\setTDWidth(), ilPCParagraph\setText(), ilPageObject\stripHierIDs(), and php4DOMDocument\xpath_new_context().

64 {
65  return new php4DOMXPath($dom_document);
66 }
+ Here is the caller graph for this function: