PHP Class Roller\Plugin\RESTful\ResourceHandler

Inheritance: extends BaseHandler
Datei anzeigen Open project: c9s/roller

Public Methods

Method Description
create ( ) create new record
delete ( $id ) delete record
expand ( RouteSet $routes, $h, string $r ) Expand resource handlers to routeset, in here, we define how to expand RESTful URLs from resource id, and which is customizable.
find ( ) retrieve record list
handleCreate ( $format )
handleDelete ( $id, $format )
handleFind ( $format )
handleLoad ( $id, $format )
handleUpdate ( $id, $format )
load ( $id ) load one record
update ( $id ) update record

Method Details

create() abstract public method

create new record
abstract public create ( )

delete() abstract public method

delete record
abstract public delete ( $id )

expand() static public method

Expand resource handlers to routeset, in here, we define how to expand RESTful URLs from resource id, and which is customizable.
static public expand ( RouteSet $routes, $h, string $r )
$routes RouteSet
$r string resource identifier.

find() abstract public method

retrieve record list
abstract public find ( )

handleCreate() public method

public handleCreate ( $format )

handleDelete() public method

public handleDelete ( $id, $format )

handleFind() public method

public handleFind ( $format )

handleLoad() public method

public handleLoad ( $id, $format )

handleUpdate() public method

public handleUpdate ( $id, $format )

load() abstract public method

load one record
abstract public load ( $id )

update() abstract public method

update record
abstract public update ( $id )