PHP Class Tdt\Core\Definitions\DefinitionController

Author: Jan Vansteenlandt ([email protected])
Inheritance: extends Tdt\Core\ApiController
Show file Open project: tdt/core

Protected Properties

Property Type Description
$definitions

Public Methods

Method Description
__construct ( Tdt\Core\Repositories\Interfaces\DefinitionRepositoryInterface $definitions )
delete ( $uri ) Delete a definition based on the URI given.
get ( $uri ) * GET a definition based on the uri provided
head ( $uri ) Return the headers of a call made to the uri given.
patch ( $uri ) PATCH a definition based on the PATCH parameters and URI.
put ( $uri ) Create a new definition based on the PUT parameters given and content-type

Private Methods

Method Description
fetchInput ( ) Retrieve the input, make sure all keys are lowercased

Method Details

__construct() public method

public __construct ( Tdt\Core\Repositories\Interfaces\DefinitionRepositoryInterface $definitions )
$definitions Tdt\Core\Repositories\Interfaces\DefinitionRepositoryInterface

delete() public method

Delete a definition based on the URI given.
public delete ( $uri )

get() public method

* GET a definition based on the uri provided
public get ( $uri )

head() public method

Return the headers of a call made to the uri given.
public head ( $uri )

patch() public method

PATCH a definition based on the PATCH parameters and URI.
public patch ( $uri )

put() public method

Create a new definition based on the PUT parameters given and content-type
public put ( $uri )

Property Details

$definitions protected property

protected $definitions