PHP Class Horde_Pear_Package_Xml_Element_File, 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.
Datei anzeigen Open project: horde/horde

Public Methods

Method Description
__construct ( string $name, Horde_Pear_Package_Xml_Element_Directory $parent, string $role = null ) Constructor.
delete ( ) : null Remove the file entry from the XML.
getFileNode ( ) : DOMNode Get the DOM node of the file entry.
insert ( DOMNode $point = null ) : null Insert the file entry into the XML at the given point.
setFileNode ( DOMNode $file ) : null Set the DOM node of the file entry.

Method Details

__construct() public method

Constructor.
public __construct ( string $name, Horde_Pear_Package_Xml_Element_Directory $parent, string $role = null )
$name string The name of the directory.
$parent Horde_Pear_Package_Xml_Element_Directory The parent directory.
$role string The file role.

delete() public method

Remove the file entry from the XML.
public delete ( ) : null
return null

getFileNode() public method

Get the DOM node of the file entry.
public getFileNode ( ) : DOMNode
return DOMNode The file node.

insert() public method

Insert the file entry into the XML at the given point.
public insert ( DOMNode $point = null ) : null
$point DOMNode Insertion point.
return null

setFileNode() public method

Set the DOM node of the file entry.
public setFileNode ( DOMNode $file ) : null
$file DOMNode
return null