PHP Класс Pagekit\Installer\Package\PackageScripts

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$current string
$file string

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
get ( string $name ) : array
getUpdates ( ) : callable[]
load ( ) : array
run ( array | callable $scripts )

Описание методов

__construct() публичный метод

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

disable() публичный метод

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

enable() публичный метод

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

get() защищенный метод

protected get ( string $name ) : array
$name string
Результат array

getUpdates() защищенный метод

protected getUpdates ( ) : callable[]
Результат callable[]

hasUpdates() публичный метод

Checks for script updates.
public hasUpdates ( )

install() публичный метод

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

load() защищенный метод

protected load ( ) : array
Результат array

run() защищенный метод

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

uninstall() публичный метод

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

update() публичный метод

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

Описание свойств

$current защищенное свойство

protected string $current
Результат string

$file защищенное свойство

protected string $file
Результат string