PHP 클래스 KickAssets_FileRequest

저자: Uncle Cheese ([email protected])
상속: extends RequestHandler
파일 보기 프로젝트 열기: unclecheese/silverstripe-kickassets 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$file File The file that this controller will be editing/reading/deleting
$parent KickAssets The parent controller

공개 메소드들

메소드 설명
__construct ( KickAssets $parent, File $file ) Constructor, sets the parent and file
handleDelete ( SS_HTTPRequest $r ) : SS_HTTPResponse Deletes the file bound to this controller
handleRead ( SS_HTTPRequest $r ) : SS_HTTPResponse Serves up the details for the file bound to this controller
handleUpdate ( SS_HTTPRequest $r ) : SS_HTTPResponse Applies edits to the file bound to this controller

보호된 메소드들

메소드 설명
JSONResponse ( array $json = null ) Helper method for generating an HTTPResponse based on given JSON
buildJSON ( ) : array Adds new properties to the parent (KickAssets) file JSON

메소드 상세

JSONResponse() 보호된 메소드

Helper method for generating an HTTPResponse based on given JSON
protected JSONResponse ( array $json = null )
$json array

__construct() 공개 메소드

Constructor, sets the parent and file
public __construct ( KickAssets $parent, File $file )
$parent KickAssets
$file File

buildJSON() 보호된 메소드

Adds new properties to the parent (KickAssets) file JSON
protected buildJSON ( ) : array
리턴 array

handleDelete() 공개 메소드

Deletes the file bound to this controller
public handleDelete ( SS_HTTPRequest $r ) : SS_HTTPResponse
$r SS_HTTPRequest
리턴 SS_HTTPResponse

handleRead() 공개 메소드

Serves up the details for the file bound to this controller
public handleRead ( SS_HTTPRequest $r ) : SS_HTTPResponse
$r SS_HTTPRequest
리턴 SS_HTTPResponse

handleUpdate() 공개 메소드

Applies edits to the file bound to this controller
public handleUpdate ( SS_HTTPRequest $r ) : SS_HTTPResponse
$r SS_HTTPRequest
리턴 SS_HTTPResponse

프로퍼티 상세

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

The file that this controller will be editing/reading/deleting
protected File $file
리턴 File

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

The parent controller
protected KickAssets $parent
리턴 KickAssets