PHP Class Components_Component_DependencyList, 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.
Inheritance: implements Iterator
Datei anzeigen Open project: horde/horde

Public Methods

Method Description
__construct ( Components_Component $component, Components_Component_Factory $factory ) Constructor.
__get ( $key ) Implementation of the Iterator rewind() method. Rewinds the dependency list.
current ( ) : Components_Component_Dependency | null Implementation of the Iterator current(). Returns the current dependency.
key ( ) : mixed Implementation of the Iterator key() method. Returns the key of the current dependency.
listAllChannels ( ) : array Return all channels required for the component and its dependencies.
next ( ) : Components_Component_Dependency | null Implementation of the Iterator next() method. Returns the next dependency.
rewind ( ) Implementation of the Iterator rewind() method. Rewinds the dependency list.
valid ( ) : boolean Implementation of the Iterator valid() method. Indicates if the current element is a valid element.

Private Methods

Method Description
_getDependencies ( ) : array Return all dependencies for this package.

Method Details

__construct() public method

Constructor.
public __construct ( Components_Component $component, Components_Component_Factory $factory )
$component Components_Component The component.
$factory Components_Component_Factory Generator for dependency representations.

__get() public method

return NULL
public __get ( $key )

current() public method

Implementation of the Iterator current(). Returns the current dependency.
public current ( ) : Components_Component_Dependency | null
return Components_Component_Dependency | null The current dependency.

key() public method

Implementation of the Iterator key() method. Returns the key of the current dependency.
public key ( ) : mixed
return mixed The key for the current position.

listAllChannels() public method

Return all channels required for the component and its dependencies.
public listAllChannels ( ) : array
return array The list of channels.

next() public method

Implementation of the Iterator next() method. Returns the next dependency.
public next ( ) : Components_Component_Dependency | null
return Components_Component_Dependency | null The next dependency or null if there are no more dependencies.

rewind() public method

return NULL
public rewind ( )

valid() public method

Implementation of the Iterator valid() method. Indicates if the current element is a valid element.
public valid ( ) : boolean
return boolean Whether the current element is valid