PHP Class Jelix\Dependencies\Item

Mostrar archivo Open project: jelix/jelix Class Usage Examples

Protected Properties

Property Type Description
$_isInstalled
$action
$currentVersion
$dependencies
$name
$nextVersion
$properties

Public Methods

Method Description
__construct ( string $name, boolean $isInstalled, string $currentVersion, integer $action, null $nextVersion = null ) Item constructor.
addDependency ( $name, $version = '*' )
getAction ( )
getCurrentVersion ( )
getDependencies ( )
getName ( )
getNextVersion ( )
getProperty ( $name )
isInstalled ( )
setAction ( $action, $nextVersion = null )
setProperty ( $name, $value ) To set properties that can be useful for the user of the Resolver.

Method Details

__construct() public method

Item constructor.
public __construct ( string $name, boolean $isInstalled, string $currentVersion, integer $action, null $nextVersion = null )
$name string an name that is unique among all items
$isInstalled boolean
$currentVersion string
$action integer one of Resolver::ACTION_* const
$nextVersion null if action is ACTION_UPGRADE

addDependency() public method

public addDependency ( $name, $version = '*' )

getAction() public method

public getAction ( )

getCurrentVersion() public method

public getCurrentVersion ( )

getDependencies() public method

public getDependencies ( )

getName() public method

public getName ( )

getNextVersion() public method

public getNextVersion ( )

getProperty() public method

public getProperty ( $name )

isInstalled() public method

public isInstalled ( )

setAction() public method

public setAction ( $action, $nextVersion = null )

setProperty() public method

To set properties that can be useful for the user of the Resolver.
public setProperty ( $name, $value )
$name
$value

Property Details

$_isInstalled protected_oe property

protected $_isInstalled

$action protected_oe property

protected $action

$currentVersion protected_oe property

protected $currentVersion

$dependencies protected_oe property

protected $dependencies

$name protected_oe property

protected $name

$nextVersion protected_oe property

protected $nextVersion

$properties protected_oe property

protected $properties