PHP Class DeployForm

Inheritance: extends Form
Show file Open project: silverstripe/deploynaut Class Usage Examples

Public Methods

Method Description
__construct ( DNRoot $controller, string $name, DNEnvironment $environment, DNProject $project )
getSelectedBuild ( array $data ) : string Get the build selected from the given data

Protected Methods

Method Description
buildCommitSelector ( DNProject $project ) : FormField Construct fields to select any commit

Method Details

__construct() public method

public __construct ( DNRoot $controller, string $name, DNEnvironment $environment, DNProject $project )
$controller DNRoot
$name string
$environment DNEnvironment
$project DNProject

buildCommitSelector() protected method

Construct fields to select any commit
protected buildCommitSelector ( DNProject $project ) : FormField
$project DNProject
return FormField

getSelectedBuild() public method

Get the build selected from the given data
public getSelectedBuild ( array $data ) : string
$data array
return string SHA of selected build