phpDocumentor

StoredCategoryInterface extends CategoryInterface, AddonValueContainerInterface

Interface StoredCategoryInterface

This interface extends the Category CategoryInterface and represents a persisted category with an unique ID.

Tags
category

System

subpackage

Interfaces

Table of Contents

addAddonValues()  : mixed
Merges the existing addon values with new ones.
deleteAddonValue()  : mixed
Deletes a specific addon value entry by key.
getAddedDateTime()  : DateTime
Returns the date time when the category was added.
getAddonValue()  : string
Returns a specific addon value by providing its key.
getAddonValueContainerId()  : int
Returns the addon value container ID.
getAddonValues()  : KeyValueCollection
Returns all the addon values as a KeyValueCollection.
getCategoryId()  : int
Gets the ID of the StoredCategory.
getDescription()  : string
Returns the description of the category for the language with the provided language code.
getDescriptionBottom()  : string
Returns the bottom description of the category for the language with the provided language code.
getHeadingTitle()  : string
Returns the heading title of the category in the language with the provided language code.
getIcon()  : string
Returns the icon filename of the category.
getImage()  : string
Returns the image filename of the category.
getImageAltText()  : string
Returns the alternative text of the image in the language with the provided language code.
getLastModifiedDateTime()  : DateTime
Returns the date time when the category was modified last.
getMetaDescription()  : string
Returns the meta description of the category in the language with the provided language code.
getMetaKeywords()  : string
Returns the meta keywords of the category in the language with the provided language code.
getMetaTitle()  : string
Returns the meta title of the category for the language with the provided language code.
getName()  : string
Returns the name of the category in the language with the provided language code.
getOpenGraphImage()  : string
Returns the OpenGraph image filename of the category.
getParentId()  : int
Returns the ID of the parent category.
getSettings()  : CategorySettingsInterface
Returns the settings of the category.
getSortOrder()  : int
Returns the sort order value.
getUrlKeywords()  : string
Returns the url keywords of the category in the language with the provided language code.
getUrlRewrite()  : UrlRewrite
Get URL rewrite
getUrlRewrites()  : UrlRewriteCollection
Get URL rewrites
isActive()  : bool
Is tax of the OrderItem allowed?
setActive()  : CategoryInterface
Sets whether category is active or not.
setAddedDateTime()  : CategoryInterface
Sets the date time when the category was added.
setAddonValue()  : mixed
Sets the value of a specific addon key.
setDescription()  : CategoryInterface
Sets the description of the category for the language with the provided language code.
setDescriptionBottom()  : CategoryInterface
Sets the bottom description of the category for the language with the provided language code.
setHeadingTitle()  : CategoryInterface
Sets the heading title of the category for the language with the provided language code.
setIcon()  : CategoryInterface
Sets the icon filename of the category.
setImage()  : CategoryInterface
Sets the image filename of the category.
setImageAltText()  : CategoryInterface
Set the alternative text of the image for the language with the provided language code.
setLastModifiedDateTime()  : CategoryInterface
Sets the date time when the category was modified last.
setMetaDescription()  : CategoryInterface
Sets the meta description of the category for the language with the provided language code.
setMetaKeywords()  : CategoryInterface
Sets the meta keywords of the category for the language with the provided language code.
setMetaTitle()  : CategoryInterface
Sets the meta title of the category for the language with the provided language code.
setName()  : CategoryInterface
Sets the name of the category for the language with the provided language code.
setOpenGraphImage()  : CategoryInterface
Sets the OpenGraph image filename of the category.
setParentId()  : CategoryInterface
Sets the parent ID of the category.
setSettings()  : CategoryInterface
Sets the settings of the category.
setSortOrder()  : CategoryInterface
Sets the sort order to the given value.
setUrlKeywords()  : CategoryInterface
Sets the url keywords of the category for the language with the provided language code.
setUrlRewrite()  : Category
Set URL rewrite
setUrlRewrites()  : Category
Set URL rewrites

Methods

getAddedDateTime()

Returns the date time when the category was added.

public getAddedDateTime() : DateTime
Return values
DateTime

The date time when the category was added.

getAddonValueContainerId()

Returns the addon value container ID.

public getAddonValueContainerId() : int
Return values
int

Addon value container ID.

getDescription()

Returns the description of the category for the language with the provided language code.

public getDescription(LanguageCode $language) : string
Parameters
$language : LanguageCode

Two letter language code.

Return values
string

Description of the category from the given language code.

getDescriptionBottom()

Returns the bottom description of the category for the language with the provided language code.

public getDescriptionBottom(LanguageCode $language) : string
Parameters
$language : LanguageCode

Two letter language code.

Return values
string

Description of the category from the given language code.

getHeadingTitle()

Returns the heading title of the category in the language with the provided language code.

public getHeadingTitle(LanguageCode $language) : string
Parameters
$language : LanguageCode

Two letter language code.

Return values
string

Heading title of the category from the given language code.

getIcon()

Returns the icon filename of the category.

public getIcon() : string
Return values
string

The icon filename of the category.

getImage()

Returns the image filename of the category.

public getImage() : string
Return values
string

The image filename of the category.

getImageAltText()

Returns the alternative text of the image in the language with the provided language code.

public getImageAltText(LanguageCode $language) : string
Parameters
$language : LanguageCode

Two letter language code.

Return values
string

The alt text of the image.

getLastModifiedDateTime()

Returns the date time when the category was modified last.

public getLastModifiedDateTime() : DateTime
Return values
DateTime

The date time when the category was modified last.

getMetaDescription()

Returns the meta description of the category in the language with the provided language code.

public getMetaDescription(LanguageCode $language) : string
Parameters
$language : LanguageCode

Two letter language code.

Return values
string

Meta description of the category from the given language code.

getMetaKeywords()

Returns the meta keywords of the category in the language with the provided language code.

public getMetaKeywords(LanguageCode $language) : string
Parameters
$language : LanguageCode

Two letter language code.

Return values
string

Meta keywords of the category from the given language code.

getMetaTitle()

Returns the meta title of the category for the language with the provided language code.

public getMetaTitle(LanguageCode $language) : string
Parameters
$language : LanguageCode

Two letter language code.

Return values
string

Meta title of the category from the given language code

getName()

Returns the name of the category in the language with the provided language code.

public getName(LanguageCode $language) : string
Parameters
$language : LanguageCode

Two letter Language code.

Return values
string

Name of the category from the given language code.

getOpenGraphImage()

Returns the OpenGraph image filename of the category.

public getOpenGraphImage() : string
Return values
string

The image filename of the category.

getParentId()

Returns the ID of the parent category.

public getParentId() : int
Return values
int

The ID of the parent category

getSortOrder()

Returns the sort order value.

public getSortOrder() : int
Return values
int

Sort order value.

getUrlKeywords()

Returns the url keywords of the category in the language with the provided language code.

public getUrlKeywords(LanguageCode $language) : string
Parameters
$language : LanguageCode

Two letter language code.

Return values
string

URL keywords of the category from the given language code.

getUrlRewrite()

Get URL rewrite

public getUrlRewrite(LanguageCode $language) : UrlRewrite

Returns the URL rewrite of the category, depending on the provided language code.

Parameters
$language : LanguageCode

The language code of the URL rewrite to be return.

Tags
throws
InvalidArgumentException

if the language code is not valid.

Return values
UrlRewrite

The URL rewrite of the category.

isActive()

Is tax of the OrderItem allowed?

public isActive() : bool
Return values
bool

Value if tax of the OrderItem allowed.

setAddedDateTime()

Sets the date time when the category was added.

public setAddedDateTime(DateTime $added) : CategoryInterface
Parameters
$added : DateTime

DateTime when the category has been added.

Return values
CategoryInterface

Same instance for chained method calls.

setLastModifiedDateTime()

Sets the date time when the category was modified last.

public setLastModifiedDateTime(DateTime $modified) : CategoryInterface
Parameters
$modified : DateTime

DateTime when the category has been lastly modified.

Return values
CategoryInterface

Same instance for chained method calls.

Search results