PHP Class Pop\Project\Install

Author: Nick Sagona, III ([email protected])
Afficher le fichier Open project: nicksagona/PopPHP Class Usage Examples

Protected Properties

Свойство Type Description
$cliErrorCodes array CLI error codes & messages

Méthodes publiques

Méthode Description
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

Method Details

cliError() public static méthode

Return a CLI error message based on the code
public static cliError ( integer $num, string $arg = null ) : string
$num integer
$arg string
Résultat string

cliHelp() public static méthode

Print the CLI help message
public static cliHelp ( ) : void
Résultat void

cliInput() public static méthode

Return the (Y/N) input from STDIN
public static cliInput ( string $msg = null ) : string
$msg string
Résultat string

getBootstrap() public static méthode

Return the location of the bootstrap file from STDIN
public static getBootstrap ( ) : string
Résultat string

getLanguage() public static méthode

Return the two-letter language code from STDIN
public static getLanguage ( array $langs ) : string
$langs array
Résultat string

getPop() public static méthode

Return the location of the vendor folder and the Pop PHP framework from STDIN
public static getPop ( ) : string
Résultat string

install() public static méthode

Install the project based on the available config files
public static install ( string $installFile ) : void
$installFile string
Résultat void

instructions() public static méthode

Display CLI instructions
public static instructions ( ) : string
Résultat string

Property Details

$cliErrorCodes protected_oe static_oe property

CLI error codes & messages
protected static array $cliErrorCodes
Résultat array