PHP Class Sulu\Bundle\ContactBundle\Controller\ContactTitleController

Inheritance: extends Sulu\Component\Rest\RestController, implements FOS\RestBundle\Routing\ClassResourceInterface
ファイルを表示 Open project: sulu/sulu

Protected Properties

Property Type Description
$entityKey
$entityName

Public Methods

Method Description
cgetAction ( ) : Response lists all contact titles optional parameter 'flat' calls listAction.
deleteAction ( $id ) : Response Delete a contact title for the given id.
getAction ( $id ) : Response Shows a single contact title for the given id.
patchAction ( Request $request ) : Response Add or update a bunch of contact titles.
postAction ( Request $request ) : Response Creates a new contact title.
putAction ( Request $request, integer $id ) : Response Edits the existing contact title for the given id.

Private Methods

Method Description
addAndUpdateTitles ( $item ) : ContactTitle Helper function for patch action.

Method Details

cgetAction() public method

lists all contact titles optional parameter 'flat' calls listAction.
public cgetAction ( ) : Response
return Symfony\Component\HttpFoundation\Response

deleteAction() public method

Delete a contact title for the given id.
public deleteAction ( $id ) : Response
$id
return Symfony\Component\HttpFoundation\Response

getAction() public method

Shows a single contact title for the given id.
public getAction ( $id ) : Response
$id
return Symfony\Component\HttpFoundation\Response

patchAction() public method

Add or update a bunch of contact titles.
public patchAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

postAction() public method

Creates a new contact title.
public postAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

putAction() public method

Edits the existing contact title for the given id.
public putAction ( Request $request, integer $id ) : Response
$request Symfony\Component\HttpFoundation\Request
$id integer The id of the title to update
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