PHP Класс Clickalicious\PhpMemAdmin\BaseInstaller

Base of installer for phpMemAdmin. This installer automate the single steps of symlink folders to document root. On Windows the symlink functionality requires administrator privileges on *nix platforms you will need the right to symlink to the folder in general.
Автор: Benjamin Carl ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$arguments array The arguments from CLI (argv) parsed.
$extra array The extra(s) from composer.json passed.
$installPath string The install path

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

Метод Описание
getArguments ( ) : array Getter for arguments.
getExtra ( ) : array Getter for extra.
getInstallPath ( ) : string Getter for installPath.
getSourcePath ( ) : boolean Detect and return source path containing the bootstrap project structure.
initArguments ( Composer\Script\CommandEvent $event = null ) : boolean Retrieve arguments from global to prepare them for further use.
retrieveInstallPath ( ) : string Returns install path relative to current path.
setArguments ( array $arguments ) : void Setter for arguments.
setExtra ( array $extra ) : void Setter for extra.
setInstallPath ( string $installPath ) : void Setter for installPath.
showBanner ( ) : void Show project banner.
showHelp ( ) : void Shows help dialog.
showVersion ( ) : void Shows phpMemAdmin version banner.
showVhostExample ( string $installPath ) : void Echoes a VHost skeleton with correct path inserted.
validatePath ( string $path ) : boolean Validates a path for installation.
xcopy ( string $source, string $destination, mixed $permissions = 493 ) : boolean Copy a file, or recursively copy a folder and its contents

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

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

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

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

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

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

Getter for installPath.
Автор: Benjamin Carl ([email protected])
protected static getInstallPath ( ) : string
Результат string The install path

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

Detect and return source path containing the bootstrap project structure.
Автор: Benjamin Carl ([email protected])
protected static getSourcePath ( ) : boolean
Результат boolean Returns true on success, false on failure

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

Retrieve arguments from global to prepare them for further use.
Автор: Benjamin Carl ([email protected])
protected static initArguments ( Composer\Script\CommandEvent $event = null ) : boolean
$event Composer\Script\CommandEvent The Composer event fired to retrieve arguments from
Результат boolean TRUE on success, otherwise FALSE

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

Returns install path relative to current path.
Автор: Benjamin Carl ([email protected])
protected static retrieveInstallPath ( ) : string
Результат string The install path

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

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

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

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

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

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

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

Show project banner.
Автор: Benjamin Carl ([email protected])
protected static showBanner ( ) : void
Результат void

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

Shows help dialog.
Автор: Benjamin Carl ([email protected])
protected static showHelp ( ) : void
Результат void

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

Shows phpMemAdmin version banner.
Автор: Benjamin Carl ([email protected])
protected static showVersion ( ) : void
Результат void

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

Echoes a VHost skeleton with correct path inserted.
Автор: Benjamin Carl ([email protected])
protected static showVhostExample ( string $installPath ) : void
$installPath string The install path to insert.
Результат void

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

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

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

Copy a file, or recursively copy a folder and its contents
Автор: Benjamin Carl ([email protected])
protected static xcopy ( string $source, string $destination, mixed $permissions = 493 ) : boolean
$source string Source path
$destination string Destination path
$permissions mixed New folder creation permissions
Результат boolean Returns true on success, false on failure

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

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

The arguments from CLI (argv) parsed.
protected static array $arguments
Результат array

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

The extra(s) from composer.json passed.
protected static array $extra
Результат array

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

The install path
protected static string $installPath
Результат string