PHP Класс Airship\Engine\Continuum\Installers\Gadget

This allows a new Gadget to be installed
Наследование: extends BaseInstaller
Показать файл Открыть проект

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

Свойство Тип Описание
$ext string
$type string

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

Метод Описание
addToCabin ( string $cabin ) : boolean Update this cabin's gadgets.json file.
install ( InstallFile $fileInfo ) : boolean Gadget install process.

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

Метод Описание
getMetadata ( InstallFile $fileInfo ) : array Get the metadata stored in the PHP archive.

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

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

Update this cabin's gadgets.json file.
public addToCabin ( string $cabin ) : boolean
$cabin string
Результат boolean

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

Get the metadata stored in the PHP archive.
protected getMetadata ( InstallFile $fileInfo ) : array
$fileInfo InstallFile
Результат array

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

1. Move .phar to the appropriate location. 2. If this gadget is for a particular cabin, add it to that cabin's gadgets.json file. 3. Run the update triggers (install hooks and incremental upgrades). 4. Clear the cache files.
public install ( InstallFile $fileInfo ) : boolean
$fileInfo InstallFile
Результат boolean

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

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

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

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

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