Package DE_EPAGES::Content::API::Object::Category
object interface for Category.
Base |
DE_EPAGES::Content::API::Object::ContentObject |
Functions
- clone
- correctCategoryDepth
- countCategoryNesting
- createURI
- featureName
- getShopUrl
- recursivSubCategories
- recursiveCorrectCategoryDepth
clone
Inserts a new category object into the database as copy from old category object.
Syntax |
$Clone = $Category->clone( $hInfo ); $Clone = $Category->clone( $hInfo, $Recursive ); |
Input |
|
Return |
|
correctCategoryDepth
corrects Attribute CategoryDepth of $Category see function countCategoryNesting
Syntax |
$Category->correctCategoryDepth; |
countCategoryNesting
Fetches the depth from the relative path of the category /Shops/<ShopAlias>/Categories is the start (0)
Syntax |
$CategoryLevel = DE_EPAGES::Content::API::Object::Category->countCategoryNesting; |
Example |
$CategoryLevel= $Category->countCategoryNesting; |
Return |
|
createURI
Returns a suggestion for a short url.
Syntax |
$URI = $Object->createURI($Name, $Parent, $LanguageID); |
Input |
|
Return |
|
featureName
Returns the feature name.
Syntax |
$FeatureName = $Category->featureName; |
Return |
|
getShopUrl
Construct the shop url of a given object dependend of the following parameters:
Syntax |
$ShopUrl = $Object->getShopUrl($hParams, $hOptions, $Servlet); |
Input |
|
Return |
|
recursivSubCategories
Returns all sub categories, recurive depth can limit bei $MaxLevel.
Syntax |
$aSubCategories = $category->recursivSubCategories; |
Input |
|
Return |
|
recursiveCorrectCategoryDepth
corrects Attribute CategoryDepth of $Category and its subcategories
Syntax |
$Category->recursiveCorrectCategoryDepth; |