PHP Класс KickAssets_FileRequest

Автор: Uncle Cheese ([email protected])
Наследование: extends RequestHandler
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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