PHP Class Sulu\Bundle\ContactBundle\Controller\AccountMediaController

Inheritance: extends AbstractMediaController, implements FOS\RestBundle\Routing\ClassResourceInterface
Afficher le fichier Open project: sulu/sulu

Méthodes publiques

Méthode 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

Méthode Description
getAccountEntityName ( )

Method Details

cgetAction() public méthode

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

deleteAction() public méthode

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

fieldsAction() public méthode

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

postAction() public méthode

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