Method | Description | |
---|---|---|
__construct ( string $name, Horde_Pear_Package_Xml_Element_Directory $parent = null ) | Constructor. | |
delete ( ) : null | Remove the directory entry from the XML. | |
getDirectoryNode ( ) : DOMNode | Get the DOM node of the directory entry. | |
getDocument ( ) : Horde_Pear_Package_Xml | Return the package.xml handler this element belongs to. | |
getFiles ( ) : array | Return the list of files in this directory. | |
getLevel ( ) : integer | Return the level of depth in the tree for this directory. | |
getName ( ) : string | Return the name of this directory. | |
getPath ( ) : string | Return the full path to this element. | |
getSubdirectories ( ) : array | Return the subdirectories for this directory. | |
insertFile ( string $name, string $role, DOMNode $point = null ) : 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. | |
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 | |
setDirectoryNode ( DOMNode $directory ) : null | Set the DOM node of the directory entry. | |
setDocument ( Horde_Pear_Package_Xml $xml ) : null | Set the package.xml handler to operate on. |
Method | Description | |
---|---|---|
_insert ( Horde_Pear_Package_Xml_Element_Directory $parent, DOMNode $point = null ) : null | Insert the directory entry into the XML at the given point. |
public __construct ( string $name, Horde_Pear_Package_Xml_Element_Directory $parent = null ) | ||
$name | string | The name of the directory. |
$parent | Horde_Pear_Package_Xml_Element_Directory | The parent directory. |
public getDirectoryNode ( ) : DOMNode | ||
return | DOMNode | The directory node. |
public getDocument ( ) : Horde_Pear_Package_Xml | ||
return | Horde_Pear_Package_Xml | The XML handler. |
public getSubdirectories ( ) : array | ||
return | array | The list of subdirectories. |
public insertFile ( string $name, string $role, DOMNode $point = null ) : Horde_Pear_Package_Xml_Element_File | ||
$name | string | The name. |
$role | string | The role. |
$point | DOMNode | Insertion point. |
return | Horde_Pear_Package_Xml_Element_File | The inserted element. |
public insertSubDirectory ( string $name, DOMNode $point = null ) : Horde_Pear_Package_Xml_Element_Directory | ||
$name | string | The name. |
$point | DOMNode | Insertion point. |
return | Horde_Pear_Package_Xml_Element_Directory | The inserted element. |
public setDirectoryNode ( DOMNode $directory ) : null | ||
$directory | DOMNode | The directory node. |
return | null |
public setDocument ( Horde_Pear_Package_Xml $xml ) : null | ||
$xml | Horde_Pear_Package_Xml | The XML handler. |
return | null |