XMLNAMESPACE
XMLNAMESPACE
The package.xml namespace
Handles package.xml files.
$_factory : \Horde_Pear_Package_Xml_Factory
The factory for required instances.
getContent( $type = 'horde', $path = null) : \Horde_Pear_Package_Contents_List
Return the list of contents.
$type | ||
$path |
The contents.
addNextVersion(string $version, string $initial_note, string $stability_api = null, string $stability_release = null, boolean $keepTime = false)
Add the next version to the package.xml
string | $version | The new version number. |
string | $initial_note | The text for the initial note. |
string | $stability_api | The API stability for the next release. |
string | $stability_release | The stability for the next release. |
boolean | $keepTime | Keep the |
addVersion(string $version, string $api, string $stability_release, string $stability_api, string $date, string $license, string $licenseLocation, string $notes)
Adds a new version to the package.xml
string | $version | The new version number. |
string | $api | The new api number. |
string | $stability_release | The stability for the next release. |
string | $stability_api | The API stability for the next release. |
string | $date | The release date. |
string | $license | The license identifier. |
string | $licenseLocation | The license URI. |
string | $notes | The text for the release notes. |
findNodeRelativeTo(string $query, \DOMNode $context) : \DOMNode|false
Return a single named node below the given context matching the given XPath query.
string | $query | The query. |
\DOMNode | $context | Search below this node. |
The named DOMNode or empty if no node was found.
getNodeTextRelativeTo(string $path, \DOMNode $context) : string|false
Return the content of a single named node below the given context and matching the given XPath query.
string | $path | The node path. |
\DOMNode | $context | Search below this node. |
The node content as string or empty if no node was found.
replaceTextNodeRelativeTo(string $path, \DOMNode $context, string $value, $attributes = array()) : \DOMNodeList
Replace a specific text node
string | $path | The XPath query pointing to the node. |
\DOMNode | $context | Search below this node. |
string | $value | The new text value. |
$attributes |
The list of DOMNodes.
_appendVersion(\DOMNode $parent, string $version, string $api, string $ws = '') : NULL
Append version information.
\DOMNode | $parent | The parent DOMNode. |
string | $version | The version. |
string | $api | The api version. |
string | $ws | Additional white space that should be inserted. |
_appendStability(\DOMNode $parent, string $release, string $api, string $ws = null) : NULL
Append stability information.
\DOMNode | $parent | The parent DOMNode. |
string | $release | The release stability. |
string | $api | The api stability. |
string | $ws | Additional white space that should be inserted. |
_appendLicense(\DOMNode $parent, string $license, string $uri, string $ws = null) : NULL
Append license information.
\DOMNode | $parent | The parent DOMNode. |
string | $license | The license name. |
string | $uri | The license URI. |
string | $ws | Additional white space that should be inserted. |
_appendChild(\DOMNode $parent, string $name, string $value, string $ws = '') : \DOMNode
Append a new child.
\DOMNode | $parent | The parent DOMNode. |
string | $name | The tag name of the new node. |
string | $value | The text content of the new node. |
string | $ws | Additional white space that should be inserted. |
The appended child.