PHP Class Horde_Pear_Package_Xml_Contents, 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.
Mostrar archivo Open project: horde/horde

Public Methods

Method Description
__construct ( Horde_Pear_Package_Xml $xml, DOMNode $contents, DOMNode $filelist ) Constructor.
add ( string $file, array $params ) : null Add a file to the list.
delete ( string $file ) : null Delete a file from the list.
update ( Horde_Pear_Package_Contents $contents ) : null Update the file list.

Private Methods

Method Description
_fileOrder ( string $a, string $b ) : integer Sort order for files in the installation list.
_getInstallInsertionPoint ( string $new ) : mixed Identify the insertion point for a new file.
_populateFileList ( ) : null Populate the existing file list from the XML.

Method Details

__construct() public method

Constructor.
public __construct ( Horde_Pear_Package_Xml $xml, DOMNode $contents, DOMNode $filelist )
$xml Horde_Pear_Package_Xml The package.xml handler to operate on.
$contents DOMNode The root node for the "contents" listing.
$filelist DOMNode The root node for the "filelist" listing.

add() public method

Add a file to the list.
public add ( string $file, array $params ) : null
$file string The file name.
$params array Additional file parameters.
return null

delete() public method

Delete a file from the list.
public delete ( string $file ) : null
$file string The file name.
return null

update() public method

Update the file list.
public update ( Horde_Pear_Package_Contents $contents ) : null
$contents Horde_Pear_Package_Contents
return null