PHP 클래스 DeploynautAPIFormatter

파일 보기 프로젝트 열기: silverstripe/deploynaut

공개 메소드들

메소드 설명
getDeploymentData ( DNDeployment $deployment ) : array Return data about a single deployment for use in API response.
getStackMemberData ( DNProject $project, integer $memberID ) : null | array Return data about a particular {@link Member} of the stack for use in API response.

메소드 상세

getDeploymentData() 공개 메소드

Return data about a single deployment for use in API response.
public getDeploymentData ( DNDeployment $deployment ) : array
$deployment DNDeployment
리턴 array

getStackMemberData() 공개 메소드

Notes: 1) This method returns null instead of an array if the member doesn't exists anymore 2) 'role' can be null in the response. This is the case of an admin, or an operations user who can create the deployment but is not part of the stack roles.
public getStackMemberData ( DNProject $project, integer $memberID ) : null | array
$project DNProject
$memberID integer
리턴 null | array