PHP Class Pagekit\Installer\Package\PackageScripts

Afficher le fichier Open project: pagekit/pagekit Class Usage Examples

Protected Properties

Свойство Type Description
$current string
$file string

Méthodes publiques

Méthode Description
__construct ( string $file, string $current = null ) Constructor.
disable ( ) Runs the script's disable hook.
enable ( ) Runs the script's enable hook.
hasUpdates ( ) Checks for script updates.
install ( ) Runs the script's install hook.
uninstall ( ) Runs the script's uninstall hook.
update ( ) Runs the script's update hooks.

Méthodes protégées

Méthode Description
get ( string $name ) : array
getUpdates ( ) : callable[]
load ( ) : array
run ( array | callable $scripts )

Method Details

__construct() public méthode

Constructor.
public __construct ( string $file, string $current = null )
$file string
$current string

disable() public méthode

Runs the script's disable hook.
public disable ( )

enable() public méthode

Runs the script's enable hook.
public enable ( )

get() protected méthode

protected get ( string $name ) : array
$name string
Résultat array

getUpdates() protected méthode

protected getUpdates ( ) : callable[]
Résultat callable[]

hasUpdates() public méthode

Checks for script updates.
public hasUpdates ( )

install() public méthode

Runs the script's install hook.
public install ( )

load() protected méthode

protected load ( ) : array
Résultat array

run() protected méthode

protected run ( array | callable $scripts )
$scripts array | callable

uninstall() public méthode

Runs the script's uninstall hook.
public uninstall ( )

update() public méthode

Runs the script's update hooks.
public update ( )

Property Details

$current protected_oe property

protected string $current
Résultat string

$file protected_oe property

protected string $file
Résultat string