PHP Class Roller\Plugin\RESTful

Notes: Create = POST Retrieve = GET Update = PUT Delete = DELETE Define a way to specify handler,
Inheritance: implements Roller\PluginInterface
Datei anzeigen Open project: c9s/roller

Public Properties

Property Type Description
$genericHandler
$prefix route prefix
$resources resource handlers
$validResources is used for generic resource handler.

Public Methods

Method Description
__construct ( $options = [] )
addValidResource ( $resourceId )
afterCompile ( $router )
beforeCompile ( $router )
registerResource ( $resourceId, $handlerClass )
setGenericHandler ( $genericHandlerClass )
setValidResources ( $resources )

Method Details

__construct() public method

public __construct ( $options = [] )

addValidResource() public method

public addValidResource ( $resourceId )

afterCompile() public method

public afterCompile ( $router )

beforeCompile() public method

public beforeCompile ( $router )

registerResource() public method

public registerResource ( $resourceId, $handlerClass )

setGenericHandler() public method

public setGenericHandler ( $genericHandlerClass )

setValidResources() public method

public setValidResources ( $resources )

Property Details

$genericHandler public_oe property

public $genericHandler

$prefix public_oe property

route prefix
public $prefix

$resources public_oe property

resource handlers
public $resources

$validResources public_oe property

is used for generic resource handler.
public $validResources