PHP Класс Pop\Project\Install

Автор: Nick Sagona, III ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$cliErrorCodes array CLI error codes & messages

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

Метод Описание
cliError ( integer $num, string $arg = null ) : string Return a CLI error message based on the code
cliHelp ( ) : void Print the CLI help message
cliInput ( string $msg = null ) : string Return the (Y/N) input from STDIN
getBootstrap ( ) : string Return the location of the bootstrap file from STDIN
getLanguage ( array $langs ) : string Return the two-letter language code from STDIN
getPop ( ) : string Return the location of the vendor folder and the Pop PHP framework from STDIN
install ( string $installFile ) : void Install the project based on the available config files
instructions ( ) : string Display CLI instructions

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

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

Return a CLI error message based on the code
public static cliError ( integer $num, string $arg = null ) : string
$num integer
$arg string
Результат string

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

Print the CLI help message
public static cliHelp ( ) : void
Результат void

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

Return the (Y/N) input from STDIN
public static cliInput ( string $msg = null ) : string
$msg string
Результат string

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

Return the location of the bootstrap file from STDIN
public static getBootstrap ( ) : string
Результат string

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

Return the two-letter language code from STDIN
public static getLanguage ( array $langs ) : string
$langs array
Результат string

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

Return the location of the vendor folder and the Pop PHP framework from STDIN
public static getPop ( ) : string
Результат string

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

Install the project based on the available config files
public static install ( string $installFile ) : void
$installFile string
Результат void

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

Display CLI instructions
public static instructions ( ) : string
Результат string

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

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

CLI error codes & messages
protected static array $cliErrorCodes
Результат array