class StaticPageCategory extends TranslatableAbstract implements PrimaryKeyInterface, BlockEntity, CategoryTreeSlugInterface

Class StaticPageCategory

Properties

protected string $locale Entity locale from TranslatableAbstract
protected int $id
protected string|null $name StaticPageCategory name
protected string|null $description StaticPageCategory description
protected integer|null $numberOfPosts Number of posts in category
protected string|null $metaTitle Meta title of StaticPageCategory
protected string|null $metaDescription Meta description of StaticPageCategory
protected string|null $icon Icon of StaticPageCategory
protected DateTime|null $createdAt Date when StaticPageCategory was created
protected DateTime|null $updatedAt Date when StaticPageCategory was last updated
protected ArrayCollection $children Collection of children
protected ArrayCollection $posts Collection of all posts in category
protected Image|null $image

Methods

setTranslatableLocale(string $locale)

Sets translatable locale

string
getTranslatableLocale()

No description

__construct()

StaticPageCategory constructor.

integer
getId()

No description

setId(int $id)

No description

string|null
getName()

No description

setName(string|null $name)

No description

string|null
getDescription()

No description

setDescription(string|null $description)

No description

int|null
getNumberOfPosts()

No description

setNumberOfPosts(int|null $numberOfPosts)

No description

string|null
getPermalink()

No description

setPermalink(string|null $permalink)

No description

array|null
getMetaKeywords()

No description

setMetaKeywords(array|null $metaKeywords)

No description

string|null
getMetaTitle()

No description

setMetaTitle(string|null $metaTitle)

No description

string|null
getMetaDescription()

No description

setMetaDescription(string|null $metaDescription)

No description

bool
getOnlyForLoggedUsers()

No description

setOnlyForLoggedUsers(bool $onlyForLoggedUsers)

No description

string|null
getIcon()

No description

setIcon(string|null $icon)

No description

DateTime|null
getCreatedAt()

No description

setCreatedAt(DateTime|null $createdAt)

No description

DateTime|null
getUpdatedAt()

No description

setUpdatedAt(DateTime|null $updatedAt)

No description

int
getLft()

No description

setLft(int $lft)

No description

int
getLvl()

No description

setLvl(int $lvl)

No description

int
getRgt()

No description

setRgt(int $rgt)

No description

getRoot()

No description

getParent()

No description

setParent(StaticPageCategory|null $parent)

No description

ArrayCollection
getChildren()

No description

setChildren(ArrayCollection $children)

No description

addChild(StaticPageCategory $children)

Add StaticPageCategory child to collection

removeChild(StaticPageCategory $children)

Remove StaticPageCategory child from collection

ArrayCollection
getPosts()

No description

setPosts(ArrayCollection $posts)

No description

addPost(StaticPage $post)

Add StaticPage to collection

removePost(StaticPage $post)

Remove StaticPage from collection

string|null
getSlug()

No description

setSlug(string|null $slug)

No description

Image|null
getImage()

No description

setImage(Image|null $image)

No description

array
getVisibleItems()

Return only visible posts

int
getNumberOfVisibleItems()

Get number of visible posts

bool
checkIsRootCategory()

No description

Details

in TranslatableAbstract at line 37
setTranslatableLocale(string $locale)

Sets translatable locale

Parameters

string $locale

in TranslatableAbstract at line 47
string getTranslatableLocale()

Return Value

string

at line 290
__construct()

StaticPageCategory constructor.

Initialize children, posts and onlyForLoggedUsers

at line 300
integer getId()

Return Value

integer

at line 310
StaticPageCategory setId(int $id)

Parameters

int $id

Return Value

StaticPageCategory

at line 320
string|null getName()

Return Value

string|null

at line 330
StaticPageCategory setName(string|null $name)

Parameters

string|null $name

Return Value

StaticPageCategory

at line 340
string|null getDescription()

Return Value

string|null

at line 350
StaticPageCategory setDescription(string|null $description)

Parameters

string|null $description

Return Value

StaticPageCategory

at line 360
int|null getNumberOfPosts()

Return Value

int|null

at line 370
StaticPageCategory setNumberOfPosts(int|null $numberOfPosts)

Parameters

int|null $numberOfPosts

Return Value

StaticPageCategory

Return Value

string|null

Parameters

string|null $permalink

Return Value

StaticPageCategory

at line 400
array|null getMetaKeywords()

Return Value

array|null

at line 410
StaticPageCategory setMetaKeywords(array|null $metaKeywords)

Parameters

array|null $metaKeywords

Return Value

StaticPageCategory

at line 420
string|null getMetaTitle()

Return Value

string|null

at line 430
StaticPageCategory setMetaTitle(string|null $metaTitle)

Parameters

string|null $metaTitle

Return Value

StaticPageCategory

at line 440
string|null getMetaDescription()

Return Value

string|null

at line 450
StaticPageCategory setMetaDescription(string|null $metaDescription)

Parameters

string|null $metaDescription

Return Value

StaticPageCategory

at line 460
bool getOnlyForLoggedUsers()

Return Value

bool

at line 470
StaticPageCategory setOnlyForLoggedUsers(bool $onlyForLoggedUsers)

Parameters

bool $onlyForLoggedUsers

Return Value

StaticPageCategory

at line 480
string|null getIcon()

Return Value

string|null

at line 490
StaticPageCategory setIcon(string|null $icon)

Parameters

string|null $icon

Return Value

StaticPageCategory

at line 500
DateTime|null getCreatedAt()

Return Value

DateTime|null

at line 510
StaticPageCategory setCreatedAt(DateTime|null $createdAt)

Parameters

DateTime|null $createdAt

Return Value

StaticPageCategory

at line 520
DateTime|null getUpdatedAt()

Return Value

DateTime|null

at line 530
StaticPageCategory setUpdatedAt(DateTime|null $updatedAt)

Parameters

DateTime|null $updatedAt

Return Value

StaticPageCategory

at line 540
int getLft()

Return Value

int

at line 550
StaticPageCategory setLft(int $lft)

Parameters

int $lft

Return Value

StaticPageCategory

at line 560
int getLvl()

Return Value

int

at line 570
StaticPageCategory setLvl(int $lvl)

Parameters

int $lvl

Return Value

StaticPageCategory

at line 580
int getRgt()

Return Value

int

at line 590
StaticPageCategory setRgt(int $rgt)

Parameters

int $rgt

Return Value

StaticPageCategory

at line 600
StaticPageCategory getRoot()

Return Value

StaticPageCategory

at line 610
StaticPageCategory setRoot(StaticPageCategory $root)

Parameters

StaticPageCategory $root

Return Value

StaticPageCategory

at line 620
StaticPageCategory|null getParent()

Return Value

StaticPageCategory|null

at line 630
StaticPageCategory setParent(StaticPageCategory|null $parent)

Parameters

StaticPageCategory|null $parent

Return Value

StaticPageCategory

at line 640
ArrayCollection getChildren()

Return Value

ArrayCollection

at line 650
StaticPageCategory setChildren(ArrayCollection $children)

Parameters

ArrayCollection $children

Return Value

StaticPageCategory

at line 663
StaticPageCategory addChild(StaticPageCategory $children)

Add StaticPageCategory child to collection

Parameters

StaticPageCategory $children

Return Value

StaticPageCategory

at line 675
removeChild(StaticPageCategory $children)

Remove StaticPageCategory child from collection

Parameters

StaticPageCategory $children

at line 684
ArrayCollection getPosts()

Return Value

ArrayCollection

at line 694
StaticPageCategory setPosts(ArrayCollection $posts)

Parameters

ArrayCollection $posts

Return Value

StaticPageCategory

at line 707
StaticPageCategory addPost(StaticPage $post)

Add StaticPage to collection

Parameters

StaticPage $post

Return Value

StaticPageCategory

at line 720
StaticPageCategory removePost(StaticPage $post)

Remove StaticPage from collection

Parameters

StaticPage $post

Return Value

StaticPageCategory

at line 737
string|null getSlug()

Return Value

string|null

at line 747
StaticPageCategory setSlug(string|null $slug)

Parameters

string|null $slug

Return Value

StaticPageCategory

at line 757
Image|null getImage()

Return Value

Image|null

at line 767
StaticPageCategory setImage(Image|null $image)

Parameters

Image|null $image

Return Value

StaticPageCategory

at line 779
array getVisibleItems()

Return only visible posts

Return Value

array

at line 796
int getNumberOfVisibleItems()

Get number of visible posts

Return Value

int

at line 811
bool checkIsRootCategory()

Return Value

bool