PHP Class PhalconRest\Mvc\Controllers\FractalController

Inheritance: extends PhalconRest\Mvc\Controller
显示文件 Open project: olivierandriessen/phalcon-rest

Protected Properties

Property Type Description
$fractal League\Fractal\Manager

Public Methods

Method Description
onConstruct ( )

Protected Methods

Method Description
createArrayResponse ( $array, $key )
createCollectionResponse ( $collection, $transformer, $resourceKey = null, $meta = null )
createItemOkResponse ( $item, $transformer, $resourceKey = null, $meta = null )
createItemResponse ( $item, $transformer, $resourceKey = null, $meta = null )
createOkResponse ( )
createResponse ( $response )
getUser ( )
getUserId ( )

Method Details

createArrayResponse() protected method

protected createArrayResponse ( $array, $key )

createCollectionResponse() protected method

protected createCollectionResponse ( $collection, $transformer, $resourceKey = null, $meta = null )

createItemOkResponse() protected method

protected createItemOkResponse ( $item, $transformer, $resourceKey = null, $meta = null )

createItemResponse() protected method

protected createItemResponse ( $item, $transformer, $resourceKey = null, $meta = null )

createOkResponse() protected method

protected createOkResponse ( )

createResponse() protected method

protected createResponse ( $response )

getUser() protected method

protected getUser ( )

getUserId() protected method

protected getUserId ( )

onConstruct() public method

public onConstruct ( )

Property Details

$fractal protected_oe property

protected Manager,League\Fractal $fractal
return League\Fractal\Manager