Свойство | Тип | Описание | |
---|---|---|---|
$catTranslationEntityName | |||
$categoryEntityName |
Метод | Описание | |
---|---|---|
__construct ( Sulu\Bundle\CategoryBundle\Entity\CategoryRepositoryInterface $categoryRepository, Sulu\Bundle\CategoryBundle\Entity\CategoryMetaRepositoryInterface $categoryMetaRepository, Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationRepositoryInterface $categoryTranslationRepository, Sulu\Component\Security\Authentication\UserRepositoryInterface $userRepository, Sulu\Bundle\CategoryBundle\Category\KeywordManagerInterface $keywordManager, Doctrine\ORM\EntityManagerInterface $em, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher ) | ||
delete ( $id ) | ||
find ( $parent = null, $depth = null, $sortBy = null, $sortOrder = null ) | ||
findById ( $id ) | ||
findByIds ( array $ids ) | ||
findByKey ( $key ) | ||
findChildren ( $key, $sortBy = null, $sortOrder = null ) | ||
findChildrenByParentId ( $parentId = null ) | ||
findChildrenByParentKey ( $parentKey = null ) | ||
getApiObject ( $category, string $locale ) : null | |
Returns an API-Object for a given category-entity. The API-Object wraps the entity and provides neat getters and setters. If the given object is already an API-object, the associated entity is used for wrapping. | |
getApiObjects ( $entities, $locale ) : array | Returns an array of API-Objects for a given array of category-entities. | |
getFieldDescriptor ( $locale, $key ) | ||
getFieldDescriptors ( $locale ) | ||
save ( $data, $userId, $locale, $patch = false ) |
Метод | Описание | |
---|---|---|
findOrCreateCategoryTranslation ( Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category, |
Returns category-translation or create a new one. | |
getProperty ( array $data, string $key, string $default = null ) : string | null | Return the value of a key in a given data-array. |
public __construct ( Sulu\Bundle\CategoryBundle\Entity\CategoryRepositoryInterface $categoryRepository, Sulu\Bundle\CategoryBundle\Entity\CategoryMetaRepositoryInterface $categoryMetaRepository, Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationRepositoryInterface $categoryTranslationRepository, Sulu\Component\Security\Authentication\UserRepositoryInterface $userRepository, Sulu\Bundle\CategoryBundle\Category\KeywordManagerInterface $keywordManager, Doctrine\ORM\EntityManagerInterface $em, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher ) | ||
$categoryRepository | Sulu\Bundle\CategoryBundle\Entity\CategoryRepositoryInterface | |
$categoryMetaRepository | Sulu\Bundle\CategoryBundle\Entity\CategoryMetaRepositoryInterface | |
$categoryTranslationRepository | Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationRepositoryInterface | |
$userRepository | Sulu\Component\Security\Authentication\UserRepositoryInterface | |
$keywordManager | Sulu\Bundle\CategoryBundle\Category\KeywordManagerInterface | |
$em | Doctrine\ORM\EntityManagerInterface | |
$eventDispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface |
public find ( $parent = null, $depth = null, $sortBy = null, $sortOrder = null ) |
public getApiObject ( $category, string $locale ) : null | |
||
$category | ||
$locale | string | |
Результат | null | |
public getApiObjects ( $entities, $locale ) : array | ||
$entities | ||
$locale | ||
Результат | array |