PHP Class Components_Helper_Dependencies, horde

Copyright 2010-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.
Show file Open project: horde/horde Class Usage Examples

Public Methods

Method Description
__construct ( Components_Output $output ) Constructor.
listTree ( Components_Component $component, array $options ) : null List the dependency tree for this package.

Private Methods

Method Description
_element ( $color, $level, $key, $name, $channel, $info, $options ) : null List a single element.
_finish ( ) : null Wrap up the listing. This will produce a condensed list of packages in case quiet Output was requested.
_listComponent ( Components_Component $component, integer $level, string $parent, array $options ) : boolean List a Horde component as dependency.
_listExternal ( Components_Component_Dependency $dependency, integer $level, $options ) : null List an external package as dependency.
_listLevel ( integer $level ) : string Produces an amount of whitespace depending on the specified level.
_listTree ( Components_Component $component, array $options, integer $level, string $parent = '' ) : null List the dependency tree for this package.

Method Details

__construct() public method

Constructor.
public __construct ( Components_Output $output )
$output Components_Output The output handler.

listTree() public method

List the dependency tree for this package.
public listTree ( Components_Component $component, array $options ) : null
$component Components_Component The component for which the dependency tree should be shown.
$options array Options for generating the list.
return null