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.
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
__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