PHP Class Sulu\Bundle\ResourceBundle\Controller\FilterController

Inheritance: extends Sulu\Component\Rest\RestController, implements FOS\RestBundle\Routing\ClassResourceInterface, use trait Sulu\Component\Rest\RequestParametersTrait
Mostra file Open project: sulu/sulu

Protected Properties

Property Type Description
$entityKey
$entityName
$groupConditionEntityName

Public Methods

Method Description
cdeleteAction ( Request $request ) : Response Delete an filter with the given id.
cgetAction ( Request $request ) : Response Returns a list of filters.
deleteAction ( integer $id ) : Response Delete an filter with the given id.
fieldsAction ( Request $request ) : mixed returns all fields that can be used by list.
getAction ( Request $request, $id ) : Response Retrieves a filter by id.
postAction ( Request $request ) : Response Creates and stores a new filter.
putAction ( Request $request, integer $id ) : Response Change a filter by the given id.

Protected Methods

Method Description
getManager ( ) : Sulu\Bundle\ResourceBundle\Resource\FilterManagerInterface Returns the manager for filters.

Private Methods

Method Description
getListRepresentation ( Request $request ) : ListRepresentation Returns a list representation.

Method Details

cdeleteAction() public method

Delete an filter with the given id.
public cdeleteAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

cgetAction() public method

Returns a list of filters.
public cgetAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

deleteAction() public method

Delete an filter with the given id.
public deleteAction ( integer $id ) : Response
$id integer the attribute id
return Symfony\Component\HttpFoundation\Response

fieldsAction() public method

returns all fields that can be used by list.
public fieldsAction ( Request $request ) : mixed
$request Symfony\Component\HttpFoundation\Request
return mixed

getAction() public method

Retrieves a filter by id.
public getAction ( Request $request, $id ) : Response
$request Symfony\Component\HttpFoundation\Request
$id
return Symfony\Component\HttpFoundation\Response

getManager() protected method

Returns the manager for filters.
protected getManager ( ) : Sulu\Bundle\ResourceBundle\Resource\FilterManagerInterface
return Sulu\Bundle\ResourceBundle\Resource\FilterManagerInterface

postAction() public method

Creates and stores a new filter.
public postAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

putAction() public method

Change a filter by the given id.
public putAction ( Request $request, integer $id ) : Response
$request Symfony\Component\HttpFoundation\Request
$id integer the attribute id
return Symfony\Component\HttpFoundation\Response

Property Details

$entityKey protected_oe static_oe property

protected static $entityKey

$entityName protected_oe static_oe property

protected static $entityName

$groupConditionEntityName protected_oe static_oe property

protected static $groupConditionEntityName