PHP Класс Clickalicious\PhpMemAdmin\Installer

См. также: https://github.com/wp-cli/php-cli-tools
Автор: Benjamin Carl ([email protected])
Наследование: extends BaseInstaller
Показать файл Открыть проект

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

Свойство Тип Описание
$folders array Default folders we install.

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

Метод Описание
postInstall ( Composer\Script\CommandEvent $event ) : boolean | null Installer process for project based on post install event hook on composer.

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

Метод Описание
askAlternatePath ( string $menu )
getFolders ( ) : array Getter for folders.
handleEvent ( Composer\Script\CommandEvent $event ) : boolean | null Handles a received event - dispatcher.
install ( string $targetDirectory ) : boolean Installs the folders required for the bootstrap project from repo to project folder.
resolveChoice ( string $menu, $choices = 'yn', $default = 'y' )
resolveTree ( $menu, $default = 'quit', $text = 'Your choice:' )
setFolders ( array $folders = [] ) : void Setter for folders.
showError ( string $message )
showFailed ( ) : void Shows the failed message after install failed.
showOutro ( $projectRoot = 'n.a.' ) : void Shows the outro message after install succeeded to inform about management console.
showSuccess ( ) : boolean Shows the success message after install was successful.
validatePath ( string $path ) : string Validates a path for installation.

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

askAlternatePath() защищенный статический Метод

protected static askAlternatePath ( string $menu )
$menu string

getFolders() защищенный статический Метод

Getter for folders.
Автор: Benjamin Carl ([email protected])
protected static getFolders ( ) : array
Результат array The folders.

handleEvent() защищенный статический Метод

Handles a received event - dispatcher.
Автор: Benjamin Carl ([email protected])
protected static handleEvent ( Composer\Script\CommandEvent $event ) : boolean | null
$event Composer\Script\CommandEvent
Результат boolean | null TRUE on success, otherwise FALSE

install() защищенный статический Метод

Installs the folders required for the bootstrap project from repo to project folder.
Автор: Benjamin Carl ([email protected])
protected static install ( string $targetDirectory ) : boolean
$targetDirectory string The directory where to put the files/folders.
Результат boolean TRUE on success, otherwise FALSE

postInstall() публичный статический Метод

Installer process for project based on post install event hook on composer.
Автор: Benjamin Carl ([email protected])
public static postInstall ( Composer\Script\CommandEvent $event ) : boolean | null
$event Composer\Script\CommandEvent The event passed in by Composer.
Результат boolean | null TRUE on success, otherwise FALSE (signal for Composer to resolve with error)

resolveChoice() защищенный статический Метод

protected static resolveChoice ( string $menu, $choices = 'yn', $default = 'y' )
$menu string

resolveTree() защищенный статический Метод

protected static resolveTree ( $menu, $default = 'quit', $text = 'Your choice:' )

setFolders() защищенный статический Метод

Setter for folders.
Автор: Benjamin Carl ([email protected])
protected static setFolders ( array $folders = [] ) : void
$folders array The folders to set.
Результат void

showError() защищенный статический Метод

protected static showError ( string $message )
$message string

showFailed() защищенный статический Метод

Shows the failed message after install failed.
Автор: Benjamin Carl ([email protected])
protected static showFailed ( ) : void
Результат void

showOutro() защищенный статический Метод

Shows the outro message after install succeeded to inform about management console.
Автор: Benjamin Carl ([email protected])
protected static showOutro ( $projectRoot = 'n.a.' ) : void
Результат void

showSuccess() защищенный статический Метод

Shows the success message after install was successful.
Автор: Benjamin Carl ([email protected])
protected static showSuccess ( ) : boolean
Результат boolean

validatePath() защищенный статический Метод

Validates a path for installation.
Автор: Benjamin Carl ([email protected])
protected static validatePath ( string $path ) : string
$path string The path to validate
Результат string TRUE if path is valid, otherwise FALSE

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

$folders защищенное статическое свойство

Default folders we install.
protected static array $folders
Результат array