PHP Класс Sulu\Bundle\CategoryBundle\Controller\KeywordController

Наследование: extends Sulu\Component\Rest\RestController, implements FOS\RestBundle\Routing\ClassResourceInterface, implements Sulu\Component\Security\SecuredControllerInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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