$dom
$dom : \DOMDocument
Resource document DOM
Micrometa main parser class
$baseUrl : \Jkphl\Utility\Url
Resource document base URL
$_url : \Jkphl\Utility\Url
Resource document URL
__construct(\string $url, \string $source) : \Jkphl\Micrometa
Constructor
\string | $url | Resource document URL |
\string | $source | Resource document source code |
Micrometa parser object
focus(\DOMElement $element) : \DOMElement
Restrict the parsing of Microformats2 markup to a specific element node of the resource document DOM (and it's descendants)
\DOMElement | $element | Focus element node (must be a descendant of the resource document DOM) |
Focus element
parse() : \Jkphl\Micrometa
Parse the document for embedded micro information (all supported formats)
Micrometa parser object
item() : \Jkphl\Micrometa\Item
Return the first micro information item (of a specific type)
First micro information item of the resulting list
externalAuthor() : NULL|\Jkphl\Micrometa\Item
Load and extract an external author definition
Author micro information item
instance(\string $url, \string $source) : \Jkphl\Micrometa
Instance constructor
\string | $url | Resource document URL |
\string | $source | Resource document source code |
Micrometa parser object