$container
$container : \LiftKit\DependencyInjection\Container\Container
Dependency injection container
Abstract base class for REST Controllers
This class is deprecated and should not be used! Use RestInterface instead.
dispatch(string $method, array $args = array()) : \LiftKit\Response\Response
Dispatches a Controller action.
string | $method | The name of the method to be executed. |
array | $args | An array of arguments to be passed to the method. |
respondsTo(string $method, array $args = array()) : boolean
Will indicate whether the controller responds to a particular combination of method and arguments.
string | $method | The name of the method to be executed. |
array | $args | An array of arguments to be passed to the method. |
true if the controller can respond, false if not
index() : \LiftKit\Response\Response
Index
Returns an index of resources.
get(mixed $id) : \LiftKit\Response\Response
Get
Returns a single resource.
mixed | $id | Identifier of resource |
insert() : \LiftKit\Response\Response
Insert
Inserts a new resource.
update(mixed $id) : \LiftKit\Response\Response
Update
Updates an existing resource
mixed | $id | Identifier of resource |
delete(mixed $id) : \LiftKit\Response\Response
Delete
Deletes an existing resource.
mixed | $id | Identifier of resource |