PHP 클래스 Pagekit\Installer\Package\PackageScripts

파일 보기 프로젝트 열기: pagekit/pagekit 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$current string
$file string

공개 메소드들

메소드 설명
__construct ( string $file, string $current = null ) Constructor.
disable ( ) Runs the script's disable hook.
enable ( ) Runs the script's enable hook.
hasUpdates ( ) Checks for script updates.
install ( ) Runs the script's install hook.
uninstall ( ) Runs the script's uninstall hook.
update ( ) Runs the script's update hooks.

보호된 메소드들

메소드 설명
get ( string $name ) : array
getUpdates ( ) : callable[]
load ( ) : array
run ( array | callable $scripts )

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $file, string $current = null )
$file string
$current string

disable() 공개 메소드

Runs the script's disable hook.
public disable ( )

enable() 공개 메소드

Runs the script's enable hook.
public enable ( )

get() 보호된 메소드

protected get ( string $name ) : array
$name string
리턴 array

getUpdates() 보호된 메소드

protected getUpdates ( ) : callable[]
리턴 callable[]

hasUpdates() 공개 메소드

Checks for script updates.
public hasUpdates ( )

install() 공개 메소드

Runs the script's install hook.
public install ( )

load() 보호된 메소드

protected load ( ) : array
리턴 array

run() 보호된 메소드

protected run ( array | callable $scripts )
$scripts array | callable

uninstall() 공개 메소드

Runs the script's uninstall hook.
public uninstall ( )

update() 공개 메소드

Runs the script's update hooks.
public update ( )

프로퍼티 상세

$current 보호되어 있는 프로퍼티

protected string $current
리턴 string

$file 보호되어 있는 프로퍼티

protected string $file
리턴 string