PHP 클래스 Sulu\Bundle\MediaBundle\Controller\MediaController

상속: extends Sulu\Component\Rest\RestController, implements FOS\RestBundle\Routing\ClassResourceInterface, implements Sulu\Component\Security\SecuredControllerInterface, use trait Sulu\Component\Rest\RequestParametersTrait
파일 보기 프로젝트 열기: sulu/sulu

보호된 프로퍼티들

프로퍼티 타입 설명
$entityKey string

공개 메소드들

메소드 설명
cgetAction ( Request $request ) : Response Lists all media.
deleteAction ( $id ) : Response Delete a media with the given id.
getAction ( $id, Request $request ) : Response Shows a single media with the given id.
getFieldsAction ( Request $request ) : Response returns all fields that can be used by list.
getSecuredClass ( ) : string Returns the class name of the object to check.
getSecuredObjectId ( Request $request ) : string Returns the id of the object to check.
getSecurityContext ( )
postAction ( Request $request ) : Response Creates a new media.
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 media with the given id.

보호된 메소드들

메소드 설명
getCollectionManager ( ) : Sulu\Bundle\MediaBundle\Collection\Manager\CollectionManagerInterface
getCollectionRepository ( ) : Sulu\Bundle\MediaBundle\Entity\CollectionRepositoryInterface
getFieldDescriptors ( string $locale, boolean $all = true ) : Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface[] Returns field-descriptors for media.
getSecurityChecker ( ) : Sulu\Component\Security\Authorization\SecurityCheckerInterface
moveEntity ( integer $id, Request $request ) : Response Move an entity to another collection.
saveEntity ( $id, Request $request ) : Response

비공개 메소드들

메소드 설명
getListBuilder ( Request $request, array $fieldDescriptors, array $ids, array $types ) : DoctrineListBuilder Returns a list-builder for media list.

메소드 상세

cgetAction() 공개 메소드

Lists all media.
public cgetAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\Response

deleteAction() 공개 메소드

Delete a media with the given id.
public deleteAction ( $id ) : Response
$id
리턴 Symfony\Component\HttpFoundation\Response

getAction() 공개 메소드

Shows a single media with the given id.
public getAction ( $id, Request $request ) : Response
$id
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\Response

getCollectionManager() 보호된 메소드

protected getCollectionManager ( ) : Sulu\Bundle\MediaBundle\Collection\Manager\CollectionManagerInterface
리턴 Sulu\Bundle\MediaBundle\Collection\Manager\CollectionManagerInterface

getCollectionRepository() 보호된 메소드

protected getCollectionRepository ( ) : Sulu\Bundle\MediaBundle\Entity\CollectionRepositoryInterface
리턴 Sulu\Bundle\MediaBundle\Entity\CollectionRepositoryInterface

getFieldDescriptors() 보호된 메소드

Returns field-descriptors for media.
protected getFieldDescriptors ( string $locale, boolean $all = true ) : Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface[]
$locale string
$all boolean
리턴 Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface[]

getFieldsAction() 공개 메소드

returns all fields that can be used by list.
public getFieldsAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\Response

getSecuredClass() 공개 메소드

Returns the class name of the object to check.
public getSecuredClass ( ) : string
리턴 string

getSecuredObjectId() 공개 메소드

Returns the id of the object to check.
public getSecuredObjectId ( Request $request ) : string
$request Symfony\Component\HttpFoundation\Request
리턴 string

getSecurityChecker() 보호된 메소드

protected getSecurityChecker ( ) : Sulu\Component\Security\Authorization\SecurityCheckerInterface
리턴 Sulu\Component\Security\Authorization\SecurityCheckerInterface

getSecurityContext() 공개 메소드

public getSecurityContext ( )

moveEntity() 보호된 메소드

Move an entity to another collection.
protected moveEntity ( integer $id, Request $request ) : Response
$id integer
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\Response

postAction() 공개 메소드

Creates a new media.
public postAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\Response

postTriggerAction() 공개 메소드

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
리턴 Symfony\Component\HttpFoundation\Response

putAction() 공개 메소드

Edits the existing media with the given id.
public putAction ( integer $id, Request $request ) : Response
$id integer The id of the media to update
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\Response

saveEntity() 보호된 메소드

protected saveEntity ( $id, Request $request ) : Response
$id
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\Response

프로퍼티 상세

$entityKey 보호되어 있는 정적으로 프로퍼티

protected static string $entityKey
리턴 string