PHP Interface Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationInterface

Inheritance: extends Sulu\Component\Persistence\Model\AuditableInterface
ファイルを表示 Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
addKeyword ( Sulu\Bundle\CategoryBundle\Entity\KeywordInterface $keyword ) : Sulu\Bundle\CategoryBundle\Entity\CategoryInterface Add keyword.
getCategory ( ) : Sulu\Bundle\CategoryBundle\Entity\CategoryInterface Get category.
getDescription ( ) : string Get description.
getId ( ) : integer Get id.
getKeywords ( ) : Doctrine\Common\Collections\Collection Get keywords.
getLocale ( ) : string Get locale.
getMedias ( ) : Media[] Get description.
getTranslation ( ) : string Get translation.
hasKeyword ( Sulu\Bundle\CategoryBundle\Entity\KeywordInterface $keyword ) : boolean Returns true if given keyword already linked with the category.
removeKeyword ( Sulu\Bundle\CategoryBundle\Entity\KeywordInterface $keyword ) Remove keyword.
setCategory ( Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category ) : Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationInterface Set category.
setChanged ( DateTime $changed )
setChanger ( Sulu\Component\Security\Authentication\UserInterface $changer )
setCreated ( DateTime $created )
setCreator ( Sulu\Component\Security\Authentication\UserInterface $creator )
setDescription ( $description ) : Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationInterface Set description.
setLocale ( string $locale ) : Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationInterface Set locale.
setMedias ( Media[] $images ) : Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationInterface Set images.
setTranslation ( string $translation ) : Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationInterface Set translation.

Method Details

addKeyword() public method

Add keyword.
public addKeyword ( Sulu\Bundle\CategoryBundle\Entity\KeywordInterface $keyword ) : Sulu\Bundle\CategoryBundle\Entity\CategoryInterface
$keyword Sulu\Bundle\CategoryBundle\Entity\KeywordInterface
return Sulu\Bundle\CategoryBundle\Entity\CategoryInterface

getCategory() public method

Get category.
public getCategory ( ) : Sulu\Bundle\CategoryBundle\Entity\CategoryInterface
return Sulu\Bundle\CategoryBundle\Entity\CategoryInterface

getDescription() public method

Get description.
public getDescription ( ) : string
return string

getId() public method

Get id.
public getId ( ) : integer
return integer

getKeywords() public method

Get keywords.
public getKeywords ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getLocale() public method

Get locale.
public getLocale ( ) : string
return string

getMedias() public method

Get description.
public getMedias ( ) : Media[]
return Sulu\Bundle\MediaBundle\Entity\Media[]

getTranslation() public method

Get translation.
public getTranslation ( ) : string
return string

hasKeyword() public method

Returns true if given keyword already linked with the category.
public hasKeyword ( Sulu\Bundle\CategoryBundle\Entity\KeywordInterface $keyword ) : boolean
$keyword Sulu\Bundle\CategoryBundle\Entity\KeywordInterface
return boolean

removeKeyword() public method

Remove keyword.
public removeKeyword ( Sulu\Bundle\CategoryBundle\Entity\KeywordInterface $keyword )
$keyword Sulu\Bundle\CategoryBundle\Entity\KeywordInterface

setCategory() public method

Set category.
public setCategory ( Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category ) : Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationInterface
$category Sulu\Bundle\CategoryBundle\Entity\CategoryInterface
return Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationInterface

setChanged() public method

public setChanged ( DateTime $changed )
$changed DateTime

setChanger() public method

public setChanger ( Sulu\Component\Security\Authentication\UserInterface $changer )
$changer Sulu\Component\Security\Authentication\UserInterface

setCreated() public method

public setCreated ( DateTime $created )
$created DateTime

setCreator() public method

public setCreator ( Sulu\Component\Security\Authentication\UserInterface $creator )
$creator Sulu\Component\Security\Authentication\UserInterface

setDescription() public method

Set description.
public setDescription ( $description ) : Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationInterface
$description
return Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationInterface

setLocale() public method

Set locale.
public setLocale ( string $locale ) : Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationInterface
$locale string
return Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationInterface

setMedias() public method

Set images.
public setMedias ( Media[] $images ) : Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationInterface
$images Sulu\Bundle\MediaBundle\Entity\Media[]
return Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationInterface

setTranslation() public method

Set translation.
public setTranslation ( string $translation ) : Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationInterface
$translation string
return Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationInterface