PHP Class Sulu\Bundle\MediaBundle\Controller\CollectionController

Inheritance: extends Sulu\Component\Rest\RestController, implements FOS\RestBundle\Routing\ClassResourceInterface, implements Sulu\Component\Security\SecuredControllerInterface, implements Sulu\Component\Security\Authorization\AccessControl\SecuredObjectControllerInterface, use trait Sulu\Component\Rest\RequestParametersTrait
Afficher le fichier Open project: sulu/sulu

Protected Properties

Свойство Type Description
$entityKey string
$entityName string

Méthodes publiques

Méthode Description
cgetAction ( Request $request ) : Response lists all collections.
deleteAction ( $id ) : Response Delete a collection with the given id.
getAction ( $id, Request $request ) : Response Shows a single collection with the given id.
getFieldsAction ( ) : mixed returns all fields that can be used by list.
getSecuredClass ( )
getSecuredObjectId ( Request $request )
getSecurityContext ( ) : string
postAction ( Request $request ) : Response Creates a new collection.
postTriggerAction ( integer $id, Request $request ) : Response Trigger an action for given media. Action is specified over get-action parameter.
putAction ( integer $id, Request $request ) : Response Edits the existing collection with the given id.
putFieldsAction ( ) persists a setting.

Méthodes protégées

Méthode Description
getCollectionManager ( ) : Sulu\Bundle\MediaBundle\Collection\Manager\CollectionManagerInterface
getData ( Request $request ) : Collection
moveEntity ( integer $id, Request $request ) : Response Moves an entity into another one.
saveEntity ( $id, Request $request ) : Response

Private Methods

Méthode Description
getOffset ( Request $request, $limit ) : integer

Method Details

cgetAction() public méthode

lists all collections.
public cgetAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
Résultat Symfony\Component\HttpFoundation\Response

deleteAction() public méthode

Delete a collection with the given id.
public deleteAction ( $id ) : Response
$id
Résultat Symfony\Component\HttpFoundation\Response

getAction() public méthode

Shows a single collection with the given id.
public getAction ( $id, Request $request ) : Response
$id
$request Symfony\Component\HttpFoundation\Request
Résultat Symfony\Component\HttpFoundation\Response

getCollectionManager() protected méthode

protected getCollectionManager ( ) : Sulu\Bundle\MediaBundle\Collection\Manager\CollectionManagerInterface
Résultat Sulu\Bundle\MediaBundle\Collection\Manager\CollectionManagerInterface

getData() protected méthode

protected getData ( Request $request ) : Collection
$request Symfony\Component\HttpFoundation\Request
Résultat Sulu\Bundle\MediaBundle\Api\Collection

getFieldsAction() public méthode

returns all fields that can be used by list.
public getFieldsAction ( ) : mixed
Résultat mixed

getSecuredClass() public méthode

public getSecuredClass ( )

getSecuredObjectId() public méthode

public getSecuredObjectId ( Request $request )
$request Symfony\Component\HttpFoundation\Request

getSecurityContext() public méthode

public getSecurityContext ( ) : string
Résultat string

moveEntity() protected méthode

Moves an entity into another one.
protected moveEntity ( integer $id, Request $request ) : Response
$id integer
$request Symfony\Component\HttpFoundation\Request
Résultat Symfony\Component\HttpFoundation\Response

postAction() public méthode

Creates a new collection.
public postAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
Résultat Symfony\Component\HttpFoundation\Response

postTriggerAction() public méthode

Trigger an action for given media. Action is specified over get-action parameter.
public postTriggerAction ( integer $id, Request $request ) : Response
$id integer
$request Symfony\Component\HttpFoundation\Request
Résultat Symfony\Component\HttpFoundation\Response

putAction() public méthode

Edits the existing collection with the given id.
public putAction ( integer $id, Request $request ) : Response
$id integer The id of the collection to update
$request Symfony\Component\HttpFoundation\Request
Résultat Symfony\Component\HttpFoundation\Response

putFieldsAction() public méthode

persists a setting.
public putFieldsAction ( )

saveEntity() protected méthode

protected saveEntity ( $id, Request $request ) : Response
$id
$request Symfony\Component\HttpFoundation\Request
Résultat Symfony\Component\HttpFoundation\Response

Property Details

$entityKey protected_oe static_oe property

protected static string $entityKey
Résultat string

$entityName protected_oe static_oe property

protected static string $entityName
Résultat string