\Horde_Pear_Package_Xml_Element_File

Handles a XML file node in the contents list.

Summary

Methods
Properties
Constants
__construct()
setFileNode()
getFileNode()
insert()
delete()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$_xml
$_parent
$_file
$_name
$_role
$_replace
$_level
N/A

Properties

$_file

$_file : \DOMNode

The file node.

Type

\DOMNode

$_name

$_name : string

The name of this file.

Type

string

$_role

$_role : string

The role of this file.

Type

string

$_replace

$_replace : array

The replacement tasks for this file.

Type

array

$_level

$_level : integer

The level in the tree.

Type

integer

Methods

__construct()

__construct(string  $name, \Horde_Pear_Package_Xml_Element_Directory  $parent, string  $role = null, array  $replace = array()) 

Constructor.

Parameters

string $name

The name of the directory.

\Horde_Pear_Package_Xml_Element_Directory $parent

The parent directory.

string $role

The file role.

array $replace

Replacement tasks.

setFileNode()

setFileNode(\DOMNode  $file) : NULL

Set the DOM node of the file entry.

Parameters

\DOMNode $file

Returns

NULL

getFileNode()

getFileNode() : \DOMNode

Get the DOM node of the file entry.

Returns

\DOMNode —

The file node.

insert()

insert(\DOMNode  $point = null) : NULL

Insert the file entry into the XML at the given point.

Parameters

\DOMNode $point

Insertion point.

Returns

NULL

delete()

delete() : NULL

Remove the file entry from the XML.

Returns

NULL