ManifestDocument
in package
Table of Contents
- XMLNS = 'https://phar.io/xml/manifest/1.0'
- $dom : DOMDocument
- fromFile() : ManifestDocument
- fromString() : ManifestDocument
- getBundlesElement() : BundlesElement
- getContainsElement() : ContainsElement
- getCopyrightElement() : CopyrightElement
- getRequiresElement() : RequiresElement
- hasBundlesElement() : bool
- __construct() : mixed
- ensureCorrectDocumentType() : void
- fetchElementByName() : DOMElement
Constants
XMLNS
public
mixed
XMLNS
= 'https://phar.io/xml/manifest/1.0'
Properties
$dom
private
DOMDocument
$dom
Methods
fromFile()
public
static fromFile(string $filename) : ManifestDocument
Parameters
- $filename : string
Return values
ManifestDocument —fromString()
public
static fromString(string $xmlString) : ManifestDocument
Parameters
- $xmlString : string
Return values
ManifestDocument —getBundlesElement()
public
getBundlesElement() : BundlesElement
Return values
BundlesElement —getContainsElement()
public
getContainsElement() : ContainsElement
Return values
ContainsElement —getCopyrightElement()
public
getCopyrightElement() : CopyrightElement
Return values
CopyrightElement —getRequiresElement()
public
getRequiresElement() : RequiresElement
Return values
RequiresElement —hasBundlesElement()
public
hasBundlesElement() : bool
Return values
bool —__construct()
private
__construct(DOMDocument $dom) : mixed
Parameters
- $dom : DOMDocument
Return values
mixed —ensureCorrectDocumentType()
private
ensureCorrectDocumentType(DOMDocument $dom) : void
Parameters
- $dom : DOMDocument
Return values
void —fetchElementByName()
private
fetchElementByName(string $elementName) : DOMElement
Parameters
- $elementName : string