PHP Class Sulu\Bundle\ContactBundle\Controller\AccountMediaController

Inheritance: extends AbstractMediaController, implements FOS\RestBundle\Routing\ClassResourceInterface
显示文件 Open project: sulu/sulu

Public Methods

Method Description
cgetAction ( $id, Request $request ) : Response Lists all media of an account optional parameter 'flat' calls listAction.
deleteAction ( $id, $slug ) : Response Removes a media from the relation to the account.
fieldsAction ( ) : Response Returns all fields that can be used by list.
postAction ( $id, Request $request ) : Response Adds a new media to the account.

Private Methods

Method Description
getAccountEntityName ( )

Method Details

cgetAction() public method

Lists all media of an account optional parameter 'flat' calls listAction.
public cgetAction ( $id, Request $request ) : Response
$id
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

deleteAction() public method

Removes a media from the relation to the account.
public deleteAction ( $id, $slug ) : Response
$id - account id
$slug - media id
return Symfony\Component\HttpFoundation\Response

fieldsAction() public method

Returns all fields that can be used by list.
public fieldsAction ( ) : Response
return Symfony\Component\HttpFoundation\Response

postAction() public method

Adds a new media to the account.
public postAction ( $id, Request $request ) : Response
$id
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response