PHP Class Airship\Engine\Continuum

This class controls the Continuum update process.
Inheritance: use trait Airship\Engine\Bolt\Log, use trait Airship\Engine\Bolt\Supplier
Show file Open project: paragonie/airship

Public Properties

Property Type Description
$supplierCache Airship\Engine\Continuum\Supplier[]

Protected Properties

Property Type Description
$hail Hail

Public Methods

Method Description
__construct ( Hail $hail = null ) Continuum constructor.
checkForUpdates ( boolean $force = false ) Do we need to do an update check? If so, start the update check process.
doUpdateCheck ( ) Do the update check,
getCabins ( ) : array Get an array of CabinUpdater objects
getGadgets ( ) : array Get an array of GadgetUpdater objects
getMotifs ( ) : array Get an array of GadgetUpdater objects
getPharManifest ( string $file ) : array Get metadata from the Phar
needsUpdate ( ) : boolean Do we need to run the update process?

Private Methods

Method Description
getEndPiece ( string $fullPath ) : string Get the last piece of a path

Method Details

__construct() public method

Continuum constructor.
public __construct ( Hail $hail = null )
$hail Hail

checkForUpdates() public method

Do we need to do an update check? If so, start the update check process.
public checkForUpdates ( boolean $force = false )
$force boolean Force start the update check?

doUpdateCheck() public method

1. Update all cabins 2. Update all gadgets 3. Update the core
public doUpdateCheck ( )

getCabins() public method

Get an array of CabinUpdater objects
public getCabins ( ) : array
return array

getGadgets() public method

Get an array of GadgetUpdater objects
public getGadgets ( ) : array
return array

getMotifs() public method

Get an array of GadgetUpdater objects
public getMotifs ( ) : array
return array

getPharManifest() public method

Get metadata from the Phar
public getPharManifest ( string $file ) : array
$file string
return array

needsUpdate() public method

Do we need to run the update process?
public needsUpdate ( ) : boolean
return boolean

Property Details

$hail protected property

protected Hail,Airship\Engine $hail
return Hail

$supplierCache public property

public Supplier[],Airship\Engine\Continuum $supplierCache
return Airship\Engine\Continuum\Supplier[]