PHP 클래스 Sulu\Bundle\CategoryBundle\Controller\KeywordController

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

보호된 프로퍼티들

프로퍼티 타입 설명
$entityKey

공개 메소드들

메소드 설명
cdeleteAction ( integer $categoryId, Request $request ) : Response Delete given keyword from given category.
cgetAction ( integer $categoryId, Request $request ) : Response Returns list of keywords filtered by the category.
deleteAction ( integer $categoryId, integer $keywordId ) : Response Delete given keyword from given category.
fieldsAction ( integer $categoryId ) : Response Returns field-descriptors for keywords.
getFieldDescriptors ( ) : Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface[] Returns field descriptor for keyword.
getSecurityContext ( )
postAction ( integer $categoryId, Request $request ) : Response Creates new keyword for given category.
putAction ( integer $categoryId, integer $keywordId, Request $request ) : Response Updates given keyword for given category.

비공개 메소드들

메소드 설명
getCategoryRepository ( ) : Sulu\Bundle\CategoryBundle\Entity\CategoryRepositoryInterface
getEntityManager ( ) : Doctrine\ORM\EntityManagerInterface
getKeywordManager ( ) : KeywordManager
getKeywordRepository ( ) : Sulu\Bundle\CategoryBundle\Entity\KeywordRepositoryInterface

메소드 상세

cdeleteAction() 공개 메소드

Delete given keyword from given category.
public cdeleteAction ( integer $categoryId, Request $request ) : Response
$categoryId integer
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\Response

cgetAction() 공개 메소드

Returns list of keywords filtered by the category.
public cgetAction ( integer $categoryId, Request $request ) : Response
$categoryId integer
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\Response

deleteAction() 공개 메소드

Delete given keyword from given category.
public deleteAction ( integer $categoryId, integer $keywordId ) : Response
$categoryId integer
$keywordId integer
리턴 Symfony\Component\HttpFoundation\Response

fieldsAction() 공개 메소드

Returns field-descriptors for keywords.
public fieldsAction ( integer $categoryId ) : Response
$categoryId integer
리턴 Symfony\Component\HttpFoundation\Response

getFieldDescriptors() 공개 메소드

Returns field descriptor for keyword.
public getFieldDescriptors ( ) : Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface[]
리턴 Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface[]

getSecurityContext() 공개 메소드

public getSecurityContext ( )

postAction() 공개 메소드

Creates new keyword for given category.
public postAction ( integer $categoryId, Request $request ) : Response
$categoryId integer
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\Response

putAction() 공개 메소드

Updates given keyword for given category.
public putAction ( integer $categoryId, integer $keywordId, Request $request ) : Response
$categoryId integer
$keywordId integer
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\Response

프로퍼티 상세

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

protected static $entityKey