$_xml
$_xml : \Horde_Pear_Package_Xml
The package.xml handler to operate on.
Handles a XML directory node in the contents list.
$_xml : \Horde_Pear_Package_Xml
The package.xml handler to operate on.
__construct(string $name, \Horde_Pear_Package_Xml_Element_Directory $parent = null)
Constructor.
string | $name | The name of the directory. |
\Horde_Pear_Package_Xml_Element_Directory | $parent | The parent directory. |
setDocument(\Horde_Pear_Package_Xml $xml) : NULL
Set the package.xml handler to operate on.
\Horde_Pear_Package_Xml | $xml | The XML handler. |
getDocument() : \Horde_Pear_Package_Xml
Return the package.xml handler this element belongs to.
The XML handler.
insertFile(string $name, string $role, \DOMNode $point = null, array $replace = array()) : \Horde_Pear_Package_Xml_Element_File
Insert a new file entry into the XML at the given point with the specified name and file role.
string | $name | The name. |
string | $role | The role. |
\DOMNode | $point | Insertion point. |
array | $replace | Replacement tasks. |
The inserted element.
insertSubDirectory(string $name, \DOMNode $point = null) : \Horde_Pear_Package_Xml_Element_Directory
Insert a new directory entry into the XML at the given point with the specified name
string | $name | The name. |
\DOMNode | $point | Insertion point. |
The inserted element.
insert(\Horde_Pear_Package_Xml_Element_Directory $parent, \DOMNode $point = null) : NULL
Insert the directory entry into the XML at the given point.
\Horde_Pear_Package_Xml_Element_Directory | $parent | The parent. |
\DOMNode | $point | Insertion point. |