Jelix 1.8.13

Resolver
in package

Tags

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.
hasItem()  : mixed
_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
Tags

ACTION_NONE

public mixed ACTION_NONE = 0
Tags

ACTION_REMOVE

public mixed ACTION_REMOVE = 3
Tags

ACTION_UPGRADE

public mixed ACTION_UPGRADE = 2
Tags

Properties

$allowToForceInstallDependencies

protected mixed $allowToForceInstallDependencies = true
Tags

$chain

protected array<string|int, Item> $chain = array()
Tags

$checkedItems

protected mixed $checkedItems = array()
Tags

$circularDependencyTracker

protected mixed $circularDependencyTracker = array()
Tags

$circularReverseDependencyTracker

protected mixed $circularReverseDependencyTracker = array()
Tags

$items

protected array<string|int, Item> $items = array()
Tags

Methods

__construct()

public __construct() : mixed
Tags
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

hasItem()

public hasItem(mixed $itemName) : mixed
Parameters
$itemName : mixed
Tags
Return values
mixed

_checkDependencies()

check dependencies of an item.

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

_checkIncompatibilities()

protected _checkIncompatibilities() : mixed
Tags
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
Tags
Return values
mixed

Search results