Method | Description | |
---|---|---|
__construct ( Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category, $locale ) | ||
getChanged ( ) : string | Returns the created date for the category. | |
getChanger ( ) : string | Returns the changer of the category. | |
getChildren ( ) : |
Returns the children of a category. | |
getCreated ( ) : string | Returns the created date for the category. | |
getCreator ( ) : string | Returns the creator of the category. | |
getDefaultLocale ( ) : string | Returns the default locale of the category. | |
getDescription ( ) : string | Returns the description of the Category dependent on the locale. | |
getId ( ) : array | Returns the id of the category. | |
getKey ( ) : string | Returns the key of the category. | |
getLocale ( ) : string | Returns the locale of the Category dependent on the existing translations and default locale. | |
getMedias ( ) : |
Returns the medias of the Category dependent on the locale. | |
getMediasRawData ( ) : string | Returns the medias of the Category dependent on the locale. | |
getMeta ( ) : array | Returns the name of the Category dependent on the locale. | |
getName ( ) : string | Returns the name of the Category dependent on the locale. | |
getParent ( ) : null | |
Returns a parent category if one exists. | |
getParentId ( ) : null | |
Returns a the id of the parent category, if one exists. | |
setKey ( string $key ) : |
Sets the key of the category. | |
setMeta ( Sulu\Bundle\CategoryBundle\Entity\CategoryMetaInterface[] $metaEntities ) : |
Takes meta as array and sets it to the entity. | |
setParent ( Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $parent ) : |
Sets a given category as the parent of the entity. | |
setTranslation ( Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationInterface $translation ) | Sets a translation to the entity. | |
toArray ( ) : array | Returns an array representation of the object. |
Method | Description | |
---|---|---|
getSingleMetaById ( $meta, $id ) : |
Takes an array of CollectionMeta and returns a single meta for a given id. | |
getTranslation ( $withDefault = false ) : Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationInterface | Returns the translation with the current locale. | |
getTranslationByLocale ( string $locale ) : Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationInterface | Returns the translation with the given locale. | |
getUserFullName ( $user ) : string | Takes a user entity and returns the fullname. |
public __construct ( Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $category, $locale ) | ||
$category | Sulu\Bundle\CategoryBundle\Entity\CategoryInterface |
public getChanged ( ) : string | ||
return | string |
public getChanger ( ) : string | ||
return | string |
public getChildren ( ) : |
||
return |
public getCreated ( ) : string | ||
return | string |
public getCreator ( ) : string | ||
return | string |
public getDefaultLocale ( ) : string | ||
return | string |
public getDescription ( ) : string | ||
return | string |
public getMedias ( ) : |
||
return |
public getMediasRawData ( ) : string | ||
return | string |
public getParentId ( ) : null | |
||
return | null | |
public setMeta ( Sulu\Bundle\CategoryBundle\Entity\CategoryMetaInterface[] $metaEntities ) : |
||
$metaEntities | Sulu\Bundle\CategoryBundle\Entity\CategoryMetaInterface[] | |
return |
public setParent ( Sulu\Bundle\CategoryBundle\Entity\CategoryInterface $parent ) : |
||
$parent | Sulu\Bundle\CategoryBundle\Entity\CategoryInterface | |
return |
public setTranslation ( Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationInterface $translation ) | ||
$translation | Sulu\Bundle\CategoryBundle\Entity\CategoryTranslationInterface |