PHP 클래스 PHPComposter\PHPComposter\BaseAction

This class should be extended by each new action.
부터: 0.1.3
저자: Alain Schlesser ([email protected])
파일 보기 프로젝트 열기: php-composter/php-composter

보호된 프로퍼티들

프로퍼티 타입 설명
$hook string Hook that was triggered.
$root string Root folder of the package.

공개 메소드들

메소드 설명
__construct ( string $hook, string $root ) Instantiate a BaseAction object.
init ( ) Initialize the action.
shutdown ( ) Shut the action down.

보호된 메소드들

메소드 설명
getAgainst ( ) : string Get the tree object to check against.
getStagedFiles ( $pattern ) : array Get the file sthat have been staged for the current commit.
recursiveGlob ( string $pattern, integer $flags ) : mixed Recursively iterate over folders and look for $pattern.

비공개 메소드들

메소드 설명
prependRoot ( string &$file, integer $index, string $root ) Prepend the repository root path

메소드 상세

__construct() 공개 메소드

Instantiate a BaseAction object.
부터: 0.1.3
public __construct ( string $hook, string $root )
$hook string The name of the hook that was triggered.
$root string Absolute path to the root folder of the package.

getAgainst() 보호된 메소드

Get the tree object to check against.
protected getAgainst ( ) : string
리턴 string HEAD or hash representing empty/initial commit state

getStagedFiles() 보호된 메소드

Get the file sthat have been staged for the current commit.
부터: 0.1.3
protected getStagedFiles ( $pattern ) : array
리턴 array

init() 공개 메소드

Initialize the action.
부터: 0.1.3
public init ( )

recursiveGlob() 보호된 메소드

Recursively iterate over folders and look for $pattern.
부터: 0.1.3
protected recursiveGlob ( string $pattern, integer $flags ) : mixed
$pattern string Pattern to look for.
$flags integer Optional. Flags to PHP glob() function. Defaults to 0.
리턴 mixed

shutdown() 공개 메소드

Shut the action down.
부터: 0.1.3
public shutdown ( )

프로퍼티 상세

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

Hook that was triggered.
부터: 0.1.3
protected string $hook
리턴 string

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

Root folder of the package.
부터: 0.1.3
protected string $root
리턴 string