PHP Interface Sulu\Bundle\CategoryBundle\Category\KeywordManagerInterface

Mostrar archivo Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
delete ( Sulu\Bundle\CategoryBundle\Entity\KeywordInterface $keyword, Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category ) : boolean Removes keyword from given category.
save ( Sulu\Bundle\CategoryBundle\Entity\KeywordInterface $keyword, Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category, string $force = null ) : Keyword Add given keyword to the category.

Method Details

delete() public method

Removes keyword from given category.
public delete ( Sulu\Bundle\CategoryBundle\Entity\KeywordInterface $keyword, Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category ) : boolean
$keyword Sulu\Bundle\CategoryBundle\Entity\KeywordInterface
$category Sulu\Bundle\CategoryBundle\Entity\CategoryInterface
return boolean true if keyword is deleted completely from the database otherwise only from the category

save() public method

Add given keyword to the category.
public save ( Sulu\Bundle\CategoryBundle\Entity\KeywordInterface $keyword, Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category, string $force = null ) : Keyword
$keyword Sulu\Bundle\CategoryBundle\Entity\KeywordInterface
$category Sulu\Bundle\CategoryBundle\Entity\CategoryInterface
$force string
return Keyword