\Horde_Pear_Package_Xml_Contents

Handles the XML contents list.

Summary

Methods
Properties
Constants
__construct()
update()
add()
delete()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_populateFileList()
_getInstallInsertionPoint()
$_xml
$_filelist
$_dir_list
$_install_list
N/A

Properties

$_filelist

$_filelist : \DOMNode

The root of the file list section.

Type

\DOMNode

$_install_list

$_install_list : array

The list of files in the "filelist" section.

Type

array

Methods

__construct()

__construct(\Horde_Pear_Package_Xml  $xml, \DOMNode  $contents, \DOMNode  $filelist) 

Constructor.

Parameters

\Horde_Pear_Package_Xml $xml

The package.xml handler to operate on.

\DOMNode $contents

The root node for the "contents" listing.

\DOMNode $filelist

The root node for the "filelist" listing.

update()

update(\Horde_Pear_Package_Contents  $contents) : NULL

Update the file list.

Parameters

\Horde_Pear_Package_Contents $contents

Returns

NULL

add()

add(string  $file, array  $params) : NULL

Add a file to the list.

Parameters

string $file

The file name.

array $params

Additional file parameters.

Returns

NULL

delete()

delete(string  $file) : NULL

Delete a file from the list.

Parameters

string $file

The file name.

Returns

NULL

_populateFileList()

_populateFileList() : NULL

Populate the existing file list from the XML.

Returns

NULL

_getInstallInsertionPoint()

_getInstallInsertionPoint(string  $new) : mixed

Identify the insertion point for a new file.

Parameters

string $new

The key for the new element.

Returns

mixed —

The insertion point.