PHP Класс Horde_Pear_Package_Xml_Element_Directory, horde

Copyright 2011-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Автор: Gunnar Wrobel ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Приватные методы

Метод Описание
_insert ( Horde_Pear_Package_Xml_Element_Directory $parent, DOMNode $point = null ) : null Insert the directory entry into the XML at the given point.

Описание методов

__construct() публичный Метод

Constructor.
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.

delete() публичный Метод

Remove the directory entry from the XML.
public delete ( ) : null
Результат null

getDirectoryNode() публичный Метод

Get the DOM node of the directory entry.
public getDirectoryNode ( ) : DOMNode
Результат DOMNode The directory node.

getDocument() публичный Метод

Return the package.xml handler this element belongs to.
public getDocument ( ) : Horde_Pear_Package_Xml
Результат Horde_Pear_Package_Xml The XML handler.

getFiles() публичный Метод

Return the list of files in this directory.
public getFiles ( ) : array
Результат array The list of files.

getLevel() публичный Метод

Return the level of depth in the tree for this directory.
public getLevel ( ) : integer
Результат integer The level.

getName() публичный Метод

Return the name of this directory.
public getName ( ) : string
Результат string The directory name.

getPath() публичный Метод

Return the full path to this element.
public getPath ( ) : string
Результат string The path.

getSubdirectories() публичный Метод

Return the subdirectories for this directory.
public getSubdirectories ( ) : array
Результат array The list of subdirectories.

insertFile() публичный Метод

Insert a new file entry into the XML at the given point with the specified name and file role.
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.
Результат Horde_Pear_Package_Xml_Element_File The inserted element.

insertSubDirectory() публичный Метод

Insert a new directory entry into the XML at the given point with the specified name
public insertSubDirectory ( string $name, DOMNode $point = null ) : Horde_Pear_Package_Xml_Element_Directory
$name string The name.
$point DOMNode Insertion point.
Результат Horde_Pear_Package_Xml_Element_Directory The inserted element.

setDirectoryNode() публичный Метод

Set the DOM node of the directory entry.
public setDirectoryNode ( DOMNode $directory ) : null
$directory DOMNode The directory node.
Результат null

setDocument() публичный Метод

Set the package.xml handler to operate on.
public setDocument ( Horde_Pear_Package_Xml $xml ) : null
$xml Horde_Pear_Package_Xml The XML handler.
Результат null