PHP Class Sulu\Bundle\CategoryBundle\Category\KeywordManager

Inheritance: implements Sulu\Bundle\CategoryBundle\Category\KeywordManagerInterface
ファイルを表示 Open project: sulu/sulu

Public Methods

Method Description
__construct ( Sulu\Bundle\CategoryBundle\Entity\KeywordRepositoryInterface $keywordRepository, Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationRepositoryInterface $categoryTranslationRepository, Doctrine\ORM\EntityManagerInterface $entityManager )
delete ( Sulu\Bundle\CategoryBundle\Entity\KeywordInterface $keyword, Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category )
save ( Sulu\Bundle\CategoryBundle\Entity\KeywordInterface $keyword, Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category, $force = null )

Private Methods

Method Description
createTranslation ( Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category, $locale ) : Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationInterface Creates a new category translation for a given category and locale.
findSynonym ( Sulu\Bundle\CategoryBundle\Entity\KeywordInterface $keyword ) : Keyword | null Find the same keyword in the database or returns null if no synonym exists.
handleDetach ( Sulu\Bundle\CategoryBundle\Entity\KeywordInterface $keyword, Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category ) : Keyword Detach given and create new keyword entity.
handleOverwrite ( Sulu\Bundle\CategoryBundle\Entity\KeywordInterface $keyword, Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category ) : Keyword Overwrites given keyword.

Method Details

__construct() public method

public __construct ( Sulu\Bundle\CategoryBundle\Entity\KeywordRepositoryInterface $keywordRepository, Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationRepositoryInterface $categoryTranslationRepository, Doctrine\ORM\EntityManagerInterface $entityManager )
$keywordRepository Sulu\Bundle\CategoryBundle\Entity\KeywordRepositoryInterface
$categoryTranslationRepository Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationRepositoryInterface
$entityManager Doctrine\ORM\EntityManagerInterface

delete() public method

public delete ( Sulu\Bundle\CategoryBundle\Entity\KeywordInterface $keyword, Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category )
$keyword Sulu\Bundle\CategoryBundle\Entity\KeywordInterface
$category Sulu\Bundle\CategoryBundle\Entity\CategoryInterface

save() public method

public save ( Sulu\Bundle\CategoryBundle\Entity\KeywordInterface $keyword, Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category, $force = null )
$keyword Sulu\Bundle\CategoryBundle\Entity\KeywordInterface
$category Sulu\Bundle\CategoryBundle\Entity\CategoryInterface