Overview

Packages

  • Pear

Classes

  • Horde_Pear_Exception
  • Horde_Pear_Package_Contents_Ignore_Composite
  • Horde_Pear_Package_Contents_Ignore_Dot
  • Horde_Pear_Package_Contents_Ignore_Git
  • Horde_Pear_Package_Contents_Ignore_Hidden
  • Horde_Pear_Package_Contents_Ignore_Nothing
  • Horde_Pear_Package_Contents_Ignore_Patterns
  • Horde_Pear_Package_Contents_Include_All
  • Horde_Pear_Package_Contents_InstallAs_Horde
  • Horde_Pear_Package_Contents_InstallAs_HordeApplication
  • Horde_Pear_Package_Contents_InstallAs_HordeComponent
  • Horde_Pear_Package_Contents_InstallAs_HordeRole
  • Horde_Pear_Package_Contents_List
  • Horde_Pear_Package_Contents_Role_HordeApplication
  • Horde_Pear_Package_Contents_Role_HordeComponent
  • Horde_Pear_Package_Dependencies
  • Horde_Pear_Package_Task_UpdateContents
  • Horde_Pear_Package_Type_Horde
  • Horde_Pear_Package_Xml
  • Horde_Pear_Package_Xml_Contents
  • Horde_Pear_Package_Xml_Directory
  • Horde_Pear_Package_Xml_Element_Directory
  • Horde_Pear_Package_Xml_Element_File
  • Horde_Pear_Package_Xml_Factory
  • Horde_Pear_Registry
  • Horde_Pear_Remote
  • Horde_Pear_Rest
  • Horde_Pear_Rest_Dependencies
  • Horde_Pear_Rest_Package
  • Horde_Pear_Rest_PackageList
  • Horde_Pear_Rest_Release
  • Horde_Pear_Rest_Releases

Interfaces

  • Horde_Pear_Package_Contents
  • Horde_Pear_Package_Contents_Ignore
  • Horde_Pear_Package_Contents_Include
  • Horde_Pear_Package_Contents_InstallAs
  • Horde_Pear_Package_Contents_Role
  • Horde_Pear_Package_Task
  • Horde_Pear_Package_Type
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Pear_Package_Xml_Element_Directory

Handles a XML directory node in the contents list.

Copyright 2011-2012 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.

Package: Pear
Category: Horde
License: LGPL 2.1
Author: Gunnar Wrobel wrobel@pardus.de
Link: http://pear.horde.org/index.php?package=Pear
Located at Horde/Pear/Package/Xml/Element/Directory.php
Methods summary
public
# __construct( string $name, Horde_Pear_Package_Xml_Element_Directory $parent = null )

Constructor.

Constructor.

Parameters

$name
<p>The name of the directory.</p>
$parent
<p>The parent directory.</p>
public null
# setDocument( Horde_Pear_Package_Xml $xml )

Set the package.xml handler to operate on.

Set the package.xml handler to operate on.

Parameters

$xml
The XML handler.

Returns

null
public Horde_Pear_Package_Xml
# getDocument( )

Return the package.xml handler this element belongs to.

Return the package.xml handler this element belongs to.

Returns

Horde_Pear_Package_Xml
The XML handler.
public null
# setDirectoryNode( DOMNode $directory )

Set the DOM node of the directory entry.

Set the DOM node of the directory entry.

Parameters

$directory
The directory node.

Returns

null
public DOMNode
# getDirectoryNode( )

Get the DOM node of the directory entry.

Get the DOM node of the directory entry.

Returns

DOMNode
The directory node.
public string
# getName( )

Return the name of this directory.

Return the name of this directory.

Returns

string
The directory name.
public integer
# getLevel( )

Return the level of depth in the tree for this directory.

Return the level of depth in the tree for this directory.

Returns

integer
The level.
public string
# getPath( )

Return the full path to this element.

Return the full path to this element.

Returns

string
The path.
public array
# getSubdirectories( )

Return the subdirectories for this directory.

Return the subdirectories for this directory.

Returns

array
The list of subdirectories.
public array
# getFiles( )

Return the list of files in this directory.

Return the list of files in this directory.

Returns

array
The list of files.
public Horde_Pear_Package_Xml_Element_File
# insertFile( string $name, string $role, DOMNode $point = null )

Insert a new file entry into the XML at the given point with the specified name and file role.

Insert a new file entry into the XML at the given point with the specified name and file role.

Parameters

$name
The name.
$role
The role.
$point
Insertion point.

Returns

Horde_Pear_Package_Xml_Element_File
The inserted element.
public Horde_Pear_Package_Xml_Element_Directory
# insertSubDirectory( string $name, DOMNode $point = null )

Insert a new directory entry into the XML at the given point with the specified name

Insert a new directory entry into the XML at the given point with the specified name

Parameters

$name
The name.
$point
Insertion point.

Returns

Horde_Pear_Package_Xml_Element_Directory
The inserted element.
public null
# delete( )

Remove the directory entry from the XML.

Remove the directory entry from the XML.

Returns

null
API documentation generated by ApiGen