PHP Class Jelix\Dependencies\Resolver

显示文件 Open project: jelix/jelix Class Usage Examples

Protected Properties

Property Type Description
$chain
$checkedItems
$circularDependencyTracker
$circularReverseDependencyTracker
$items

Public Methods

Method Description
__construct ( )
addItem ( Item $item )
getDependenciesChainForInstallation ( ) : Item[] Return the list of item to process, in the right order.

Protected Methods

Method Description
_checkDependencies ( Item $item ) check dependencies of an item.
_checkReverseDependencies ( Item $item ) check reverse dependencies of an item to remove.

Method Details

__construct() public method

public __construct ( )

_checkDependencies() protected method

check dependencies of an item.
protected _checkDependencies ( Item $item )
$item Item

_checkReverseDependencies() protected method

Find all items having the given item as dependency, and remove them
protected _checkReverseDependencies ( Item $item )
$item Item

addItem() public method

public addItem ( Item $item )
$item Item

getDependenciesChainForInstallation() public method

Their action property may have changed and indicate what to do with them.
public getDependenciesChainForInstallation ( ) : Item[]
return Item[] list of item

Property Details

$chain protected_oe property

protected $chain

$checkedItems protected_oe property

protected $checkedItems

$circularDependencyTracker protected_oe property

protected $circularDependencyTracker

$circularReverseDependencyTracker protected_oe property

protected $circularReverseDependencyTracker

$items protected_oe property

protected $items