PHP 클래스 Clickalicious\PhpMemAdmin\Installer

또한 보기: https://github.com/wp-cli/php-cli-tools
저자: Benjamin Carl ([email protected])
상속: extends BaseInstaller
파일 보기 프로젝트 열기: clickalicious/phpmemadmin

보호된 프로퍼티들

프로퍼티 타입 설명
$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