Property | Type | Description | |
---|---|---|---|
$environment | DNEnvironment | ||
$project | DNProject |
Method | Description | |
---|---|---|
Link ( string $action = '' ) : string | ||
approve ( SS_HTTPRequest $request ) : SS_HTTPResponse | ||
can_approve ( DNEnvironment $environment, Member $member = null ) : boolean | ||
can_bypass_approval ( DNEnvironment $environment, Member $member = null ) : boolean | ||
cancel ( SS_HTTPRequest $request ) : SS_HTTPResponse | ||
getModel ( string $name = '' ) : array | ||
init ( ) | ||
reject ( SS_HTTPRequest $request ) : SS_HTTPResponse | ||
submit ( SS_HTTPRequest $request ) : SS_HTTPResponse |
Method | Description | |
---|---|---|
validateDeployment ( DNDeployment $deployment ) : null | SS_HTTPResponse | Check if a DNDeployment exists and do permission checks on it. If there is something wrong it will return an APIResponse with the error, otherwise null. |
public approve ( SS_HTTPRequest $request ) : SS_HTTPResponse | ||
$request | SS_HTTPRequest | |
return | SS_HTTPResponse |
public static can_approve ( DNEnvironment $environment, Member $member = null ) : boolean | ||
$environment | DNEnvironment | |
$member | Member | |
return | boolean |
public static can_bypass_approval ( DNEnvironment $environment, Member $member = null ) : boolean | ||
$environment | DNEnvironment | |
$member | Member | |
return | boolean |
public cancel ( SS_HTTPRequest $request ) : SS_HTTPResponse | ||
$request | SS_HTTPRequest | |
return | SS_HTTPResponse |
public reject ( SS_HTTPRequest $request ) : SS_HTTPResponse | ||
$request | SS_HTTPRequest | |
return | SS_HTTPResponse |
public submit ( SS_HTTPRequest $request ) : SS_HTTPResponse | ||
$request | SS_HTTPRequest | |
return | SS_HTTPResponse |
protected validateDeployment ( DNDeployment $deployment ) : null | SS_HTTPResponse | ||
$deployment | DNDeployment | |
return | null | SS_HTTPResponse |