Jelix 1.7.18

Resolver
in package

Table of Contents

ACTION_INSTALL  = 1
ACTION_NONE  = 0
ACTION_REMOVE  = 3
ACTION_UPGRADE  = 2
$allowToForceInstallDependencies  : mixed
$chain  : array<string|int, Item>
$checkedItems  : mixed
$circularDependencyTracker  : mixed
$circularReverseDependencyTracker  : mixed
$items  : array<string|int, Item>
__construct()  : mixed
addItem()  : mixed
getDependenciesChainForInstallation()  : array<string|int, Item>
Return the list of item to process, in the right order.
getDependenciesChainForSpecificItems()  : array<string|int, Item>
Return the list of item to process when you want to install only few item.
_checkDependencies()  : mixed
check dependencies of an item.
_checkIncompatibilities()  : mixed
_checkReverseDependencies()  : mixed
check reverse dependencies of an item to remove.

Constants

ACTION_INSTALL

public mixed ACTION_INSTALL = 1

ACTION_REMOVE

public mixed ACTION_REMOVE = 3

ACTION_UPGRADE

public mixed ACTION_UPGRADE = 2

Properties

$allowToForceInstallDependencies

protected mixed $allowToForceInstallDependencies = true

$checkedItems

protected mixed $checkedItems = array()

$circularDependencyTracker

protected mixed $circularDependencyTracker = array()

$circularReverseDependencyTracker

protected mixed $circularReverseDependencyTracker = array()

Methods

__construct()

public __construct() : mixed
Return values
mixed

getDependenciesChainForInstallation()

Return the list of item to process, in the right order.

public getDependenciesChainForInstallation([bool $allowToForceInstallDependencies = true ]) : array<string|int, Item>

Their action property may have changed and indicate what to do with them.

Parameters
$allowToForceInstallDependencies : bool = true

true if the resolver is authorized to force the installation of dependencies that have not the action flag ACTION_INSTALL

Tags
throws
ItemException

when there is a circular dependency...

Return values
array<string|int, Item>

list of item

getDependenciesChainForSpecificItems()

Return the list of item to process when you want to install only few item.

public getDependenciesChainForSpecificItems(string|array<string|int, string> $itemNames[, bool $allowToForceInstallDependencies = true ]) : array<string|int, Item>

The list is in the right order. Their action property may have changed and indicate what to do with them.

Parameters
$itemNames : string|array<string|int, string>

list of names of items to install

$allowToForceInstallDependencies : bool = true

true if the resolver is authorized to force the installation of dependencies that have not the action flag ACTION_INSTALL

Tags
throws
ItemException

when there is a circular dependency...

Return values
array<string|int, Item>

list of item

_checkDependencies()

check dependencies of an item.

protected _checkDependencies(Item $item) : mixed
Parameters
$item : Item
Return values
mixed

_checkIncompatibilities()

protected _checkIncompatibilities() : mixed
Return values
mixed

_checkReverseDependencies()

check reverse dependencies of an item to remove.

protected _checkReverseDependencies(Item $item) : mixed

Find all items having the given item as dependency, and remove them

Parameters
$item : Item
Return values
mixed

Search results