Class Category
This class represents a shop category which is not persisted yet.
category |
System |
---|---|
package |
Category |
subpackage |
Entities |
__construct(\CategorySettingsInterface $settings)
addAddonValues(\KeyValueCollection $collection) : \Category
deleteAddonValue(\StringType $key) : \Category
getAddedDateTime() : \DateTime
\DateTime
getAddonValue(\StringType $key) : string
getAddonValues() : \KeyValueCollection
getDescription(\LanguageCode $language) : string
getDescriptionBottom(\LanguageCode $language) : string
string
Description of the category from the given language code.
getHeadingTitle(\LanguageCode $language) : string
getIcon() : string
string
getImage() : string
string
getImageAltText(\LanguageCode $language) : string
getLastModifiedDateTime() : \DateTime
\DateTime
getMetaDescription(\LanguageCode $language) : string
getMetaKeywords(\LanguageCode $language) : string
getMetaTitle(\LanguageCode $language) : string
getName(\LanguageCode $language) : string
getOpenGraphImage() : string
string
getParentId() : integer
integer
The ID of the parent category
getSettings() : \CategorySettingsInterface
getSortOrder() : integer
integer
Sort order value.
getUrlKeywords(\LanguageCode $language) : string
getUrlRewrite(\LanguageCode $language) : \UrlRewrite
Returns the URL rewrite of the category, depending on the provided language code.
Throws |
|
---|
\UrlRewrite
The URL rewrite of the category.
getUrlRewrites() : \UrlRewriteCollection
Returns the URL rewrites of the category.
\UrlRewriteCollection
The URL rewrites of the category.
isActive() : boolean
boolean
setActive(\BoolType $status) : \Category
setAddedDateTime(\DateTime $added) : \Category
\DateTime
Datetime of when the category has been added.
\Category
Same instance for chained method calls.
setAddonValue(\StringType $key, \StringType $value) : \Category
setDescription(\StringType $text, \LanguageCode $language) : \Category
setDescriptionBottom(\StringType $text, \LanguageCode $language) : \CategoryInterface
setHeadingTitle(\StringType $text, \LanguageCode $language) : \Category
setIcon(\StringType $iconFile) : \Category
setImage(\StringType $imageFile) : \Category
setImageAltText(\StringType $text, \LanguageCode $language) : \Category
setLastModifiedDateTime(\DateTime $modified) : \Category
\DateTime
Datetime of when the category has been lastly modified.
\Category
Same instance for chained method calls.
setMetaDescription(\StringType $text, \LanguageCode $language) : \Category
setMetaKeywords(\StringType $text, \LanguageCode $language) : \Category
setMetaTitle(\StringType $text, \LanguageCode $language) : \Category
setName(\StringType $text, \LanguageCode $language) : \Category
setOpenGraphImage(\StringType $imageFile) : \Category
setParentId(\IdType $categoryId) : \Category
setSettings(\CategorySettingsInterface $settings) : \Category
\CategorySettingsInterface
\Category
Same instance for chained method calls.
setSortOrder(\IntType $sortOrder) : \Category
setUrlKeywords(\StringType $text, \LanguageCode $language) : \Category
setUrlRewrite(\UrlRewrite $urlRewrite, \LanguageCode $language) : \Category
Sets the URL rewrite of the category for the provided language code.
\Category
Same instance for chained method calls.
setUrlRewrites(\UrlRewriteCollection $urlRewrites) : \Category
Sets the URL rewrites of the category.
\Category
Same instance for chained method calls.
active : boolean
var |
---|
boolean
parentId : integer
var |
---|
integer
sortOrder : integer
var |
---|
integer
dateAdded : \DateTime
var |
---|
\DateTime
lastModified : \DateTime
var |
---|
\DateTime
names : array
var |
---|
array
headingTitles : array
var |
---|
array
descriptions : array
var |
---|
array
descriptions_bottom : array
var |
---|
array
urlKeywords : array
var |
---|
array
image : string
var |
---|
string
openGraphImage : string
var |
---|
string
altTexts : array
var |
---|
array
icon : string
var |
---|
string