PHP 클래스 DeploymentStrategy

상속: extends ViewableData
파일 보기 프로젝트 열기: silverstripe/deploynaut 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$actionCode string
$actionTitle string
$changes array
$environment DNEnvironment
$estimatedTime integer
$messages array
$options array
$validationCode string Validation code

공개 메소드들

메소드 설명
__construct ( DNEnvironment $environment, array $options = [] )
createDeployment ( ) : DNDeployment
fromArray ( string $data ) Load from array.
fromJSON ( string $json ) Load from JSON associative array.
getActionCode ( ) : string
getActionTitle ( ) : string
getChange ( $key ) : ArrayData | null Returns a change or a given key.
getChanges ( ) : array
getChangesModificationNeeded ( ) : array Filter the changeset where modification was not required.
getEstimatedTime ( ) : integer
getMessages ( ) : array
getOption ( string $option ) : string | null
getOptions ( ) : string
getValidationCode ( ) : string
setActionCode ( $code )
setActionTitle ( string $title )
setChange ( string $title, string $from, string $to )
setChangeDescriptionOnly ( string $title, string $desc )
setChanges ( array $data )
setEstimatedTime ( $seconds )
setMessage ( string $msg, $code = self::ERROR_CODE )
setOption ( string $option, string $value )
setValidationCode ( string $code )
toArray ( ) : array Transform the deployment strategy to an array.
toJSON ( ) : string
updateDeployment ( integer $deploymentID ) : DNDeployment

메소드 상세

__construct() 공개 메소드

public __construct ( DNEnvironment $environment, array $options = [] )
$environment DNEnvironment
$options array

createDeployment() 공개 메소드

public createDeployment ( ) : DNDeployment
리턴 DNDeployment

fromArray() 공개 메소드

Environment must be set by the callee when creating this object.
public fromArray ( string $data )
$data string

fromJSON() 공개 메소드

Environment must be set by the callee when creating this object.
public fromJSON ( string $json )
$json string

getActionCode() 공개 메소드

public getActionCode ( ) : string
리턴 string

getActionTitle() 공개 메소드

public getActionTitle ( ) : string
리턴 string

getChange() 공개 메소드

Returns a change or a given key.
public getChange ( $key ) : ArrayData | null
리턴 ArrayData | null

getChanges() 공개 메소드

public getChanges ( ) : array
리턴 array Associative array of changes, e.g. array( 'SHA' => array( 'from' => 'abc', 'to' => 'def' ) )

getChangesModificationNeeded() 공개 메소드

Filter the changeset where modification was not required.

getEstimatedTime() 공개 메소드

public getEstimatedTime ( ) : integer
리턴 integer Time in minutes

getMessages() 공개 메소드

public getMessages ( ) : array
리턴 array

getOption() 공개 메소드

public getOption ( string $option ) : string | null
$option string
리턴 string | null

getOptions() 공개 메소드

public getOptions ( ) : string
리턴 string

getValidationCode() 공개 메소드

public getValidationCode ( ) : string
리턴 string

setActionCode() 공개 메소드

public setActionCode ( $code )

setActionTitle() 공개 메소드

public setActionTitle ( string $title )
$title string

setChange() 공개 메소드

public setChange ( string $title, string $from, string $to )
$title string
$from string
$to string

setChangeDescriptionOnly() 공개 메소드

public setChangeDescriptionOnly ( string $title, string $desc )
$title string
$desc string

setChanges() 공개 메소드

public setChanges ( array $data )
$data array

setEstimatedTime() 공개 메소드

public setEstimatedTime ( $seconds )

setMessage() 공개 메소드

public setMessage ( string $msg, $code = self::ERROR_CODE )
$msg string

setOption() 공개 메소드

public setOption ( string $option, string $value )
$option string
$value string

setValidationCode() 공개 메소드

public setValidationCode ( string $code )
$code string

toArray() 공개 메소드

Transform the deployment strategy to an array.
public toArray ( ) : array
리턴 array

toJSON() 공개 메소드

public toJSON ( ) : string
리턴 string

updateDeployment() 공개 메소드

public updateDeployment ( integer $deploymentID ) : DNDeployment
$deploymentID integer
리턴 DNDeployment

프로퍼티 상세

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

protected string $actionCode
리턴 string

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

protected string $actionTitle
리턴 string

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

protected array $changes
리턴 array

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

protected DNEnvironment $environment
리턴 DNEnvironment

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

protected int $estimatedTime
리턴 integer

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

protected array $messages
리턴 array

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

protected array $options
리턴 array

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

Validation code
protected string $validationCode
리턴 string