DOMHelper
in package
FinalYes
Table of Contents
Constants
- NS_AMBER_AMBERDATA = 'http://schema.slothsoft.net/amber/amberdata'
- NS_ATOM = 'http://www.w3.org/2005/Atom'
- NS_CRON_INSTRUCTIONS = 'http://schema.slothsoft.net/cron/instructions'
- NS_EM = 'http://www.mozilla.org/2004/em-rdf#'
- NS_FARAH_DICTIONARY = 'http://schema.slothsoft.net/farah/dictionary'
- NS_FARAH_MODULE = 'http://schema.slothsoft.net/farah/module'
- NS_FARAH_SITES = 'http://schema.slothsoft.net/farah/sitemap'
- NS_GD = 'http://schemas.google.com/g/2005'
- NS_HTML = 'http://www.w3.org/1999/xhtml'
- NS_MEDIA = 'http://search.yahoo.com/mrss/'
- NS_PHP = 'http://php.net/xpath'
- NS_SAVEGAME_EDITOR = 'http://schema.slothsoft.net/savegame/editor'
- NS_SCHEMA_VERSIONING = 'http://schema.slothsoft.net/schema/versioning'
- NS_SITEMAP = 'http://www.sitemaps.org/schemas/sitemap/0.9'
- NS_SVG = 'http://www.w3.org/2000/svg'
- NS_XINCLUDE = 'http://www.w3.org/2001/XInclude'
- NS_XLINK = 'http://www.w3.org/1999/xlink'
- NS_XML = 'http://www.w3.org/XML/1998/namespace'
- NS_XSD = 'http://www.w3.org/2001/XMLSchema'
- NS_XSI = 'http://www.w3.org/2001/XMLSchema-instance'
- NS_XSL = 'http://www.w3.org/1999/XSL/Transform'
- XPATH_HTML = 4
- XPATH_MISC = 16
- XPATH_NS_ALL = -1
- XPATH_PHP = 8
- XPATH_SLOTHSOFT = 1
- XPATH_W3C = 2
Methods
- createDocument() : DOMDocument
- guessExtension() : string
- load() : DOMDocument
- loadDocument() : DOMDocument
- loadXPath() : DOMXPath
- normalizeDocument() : DOMDocument
- parse() : DOMDocumentFragment
- parseDocument() : DOMDocument
- stringify() : string
- transformToDocument() : DOMDocument
- transformToFile() : SplFileInfo
- transformToFragment() : DOMDocumentFragment
Constants
NS_AMBER_AMBERDATA
public
mixed
NS_AMBER_AMBERDATA
= 'http://schema.slothsoft.net/amber/amberdata'
NS_ATOM
public
mixed
NS_ATOM
= 'http://www.w3.org/2005/Atom'
NS_CRON_INSTRUCTIONS
public
mixed
NS_CRON_INSTRUCTIONS
= 'http://schema.slothsoft.net/cron/instructions'
NS_EM
public
mixed
NS_EM
= 'http://www.mozilla.org/2004/em-rdf#'
NS_FARAH_DICTIONARY
public
mixed
NS_FARAH_DICTIONARY
= 'http://schema.slothsoft.net/farah/dictionary'
NS_FARAH_MODULE
public
mixed
NS_FARAH_MODULE
= 'http://schema.slothsoft.net/farah/module'
NS_FARAH_SITES
public
mixed
NS_FARAH_SITES
= 'http://schema.slothsoft.net/farah/sitemap'
NS_GD
public
mixed
NS_GD
= 'http://schemas.google.com/g/2005'
NS_HTML
public
mixed
NS_HTML
= 'http://www.w3.org/1999/xhtml'
NS_MEDIA
public
mixed
NS_MEDIA
= 'http://search.yahoo.com/mrss/'
NS_PHP
public
mixed
NS_PHP
= 'http://php.net/xpath'
NS_SAVEGAME_EDITOR
public
mixed
NS_SAVEGAME_EDITOR
= 'http://schema.slothsoft.net/savegame/editor'
NS_SCHEMA_VERSIONING
public
mixed
NS_SCHEMA_VERSIONING
= 'http://schema.slothsoft.net/schema/versioning'
NS_SITEMAP
public
mixed
NS_SITEMAP
= 'http://www.sitemaps.org/schemas/sitemap/0.9'
NS_SVG
public
mixed
NS_SVG
= 'http://www.w3.org/2000/svg'
NS_XINCLUDE
public
mixed
NS_XINCLUDE
= 'http://www.w3.org/2001/XInclude'
NS_XLINK
public
mixed
NS_XLINK
= 'http://www.w3.org/1999/xlink'
NS_XML
public
mixed
NS_XML
= 'http://www.w3.org/XML/1998/namespace'
NS_XSD
public
mixed
NS_XSD
= 'http://www.w3.org/2001/XMLSchema'
NS_XSI
public
mixed
NS_XSI
= 'http://www.w3.org/2001/XMLSchema-instance'
NS_XSL
public
mixed
NS_XSL
= 'http://www.w3.org/1999/XSL/Transform'
XPATH_HTML
public
mixed
XPATH_HTML
= 4
XPATH_MISC
public
mixed
XPATH_MISC
= 16
XPATH_NS_ALL
public
mixed
XPATH_NS_ALL
= -1
XPATH_PHP
public
mixed
XPATH_PHP
= 8
XPATH_SLOTHSOFT
public
mixed
XPATH_SLOTHSOFT
= 1
XPATH_W3C
public
mixed
XPATH_W3C
= 2
Methods
createDocument()
public
createDocument(string $namespaceURI, string $qualifiedName) : DOMDocument
Parameters
- $namespaceURI : string
- $qualifiedName : string
Return values
DOMDocumentguessExtension()
public
static guessExtension(string $namespaceURI) : string
Parameters
- $namespaceURI : string
Return values
stringload()
public
load(mixed $url[, bool $asHTML = false ]) : DOMDocument
Parameters
- $url : mixed
- $asHTML : bool = false
Return values
DOMDocumentloadDocument()
public
static loadDocument(string $filePath[, bool $asHTML = false ]) : DOMDocument
Parameters
- $filePath : string
- $asHTML : bool = false
Return values
DOMDocumentloadXPath()
public
static loadXPath(DOMDocument $document[, int $options = self::XPATH_HTML ]) : DOMXPath
Parameters
- $document : DOMDocument
- $options : int = self::XPATH_HTML
Return values
DOMXPathnormalizeDocument()
public
normalizeDocument(DOMDocument $dataDoc) : DOMDocument
Parameters
- $dataDoc : DOMDocument
Return values
DOMDocumentparse()
public
parse(string $xmlCode[, DOMDocument $targetDoc = null ][, bool $asHTML = false ]) : DOMDocumentFragment
Parameters
- $xmlCode : string
- $targetDoc : DOMDocument = null
- $asHTML : bool = false
Return values
DOMDocumentFragmentparseDocument()
public
static parseDocument(string $fileContents[, bool $asHTML = false ]) : DOMDocument
Parameters
- $fileContents : string
- $asHTML : bool = false
Return values
DOMDocumentstringify()
public
stringify(DOMNode $sourceNode) : string
Parameters
- $sourceNode : DOMNode
Return values
stringtransformToDocument()
public
transformToDocument(mixed $source, mixed $template[, array<string|int, mixed> $param = [] ]) : DOMDocument
Parameters
- $source : mixed
- $template : mixed
- $param : array<string|int, mixed> = []
Return values
DOMDocumenttransformToFile()
public
transformToFile(mixed $source, mixed $template[, array<string|int, mixed> $param = [] ][, SplFileInfo $output = null ]) : SplFileInfo
Parameters
- $source : mixed
- $template : mixed
- $param : array<string|int, mixed> = []
- $output : SplFileInfo = null
Return values
SplFileInfotransformToFragment()
public
transformToFragment(mixed $source, mixed $template[, array<string|int, mixed> $param = [] ][, DOMDocument $targetDoc = null ]) : DOMDocumentFragment
Parameters
- $source : mixed
- $template : mixed
- $param : array<string|int, mixed> = []
- $targetDoc : DOMDocument = null