

| oxCategory.__construct | ( | ) |
Class constructor, initiates parent constructor (parent.oxI18n()).
Reimplemented from oxI18n.
| oxCategory.__get | ( | $ | sName | ) |
Extra getter to guarantee compatibility with templates
| string | $sName name of variable to get |
Reimplemented from oxBase.
| oxCategory.assign | ( | $ | dbRecord | ) |
Loads and assigns object data from DB.
| mixed | $dbRecord database record array |
Reimplemented from oxI18n.
| oxCategory.delete | ( | $ | sOXID = null |
) |
Delete empty categories, returns true on success.
| string | $sOXID Object ID |
Reimplemented from oxBase.
| oxCategory.getSubCats | ( | ) |
returns the sub category array
| oxCategory.getSubCat | ( | $ | sKey | ) |
returns a specific sub categpory
| string | $sKey the key of the category |
| oxCategory.setSubCats | ( | $ | aCats | ) |
Sets an array of sub cetegories, handles sorting and parent hasVisibleSubCats
| array | $aCats array of categories |
| oxCategory.setSubCat | ( | $ | oCat, | |
| $ | sKey = null | |||
| ) |
sets a single category, handles sorting and parent hasVisibleSubCats
| oxcategory | $oCat the category | |
| string | $sKey optional, the key for that category, without a key, the category isjust added to the array |
| oxCategory.sortSubCats | ( | ) |
Sorts sub categories
| oxCategory.getContentCats | ( | ) |
returns the content category array
| oxCategory.setContentCats | ( | $ | aContent | ) |
Sets an array of content cetegories
| array | $aContent array of content |
| oxCategory.setContentCat | ( | $ | oContent, | |
| $ | sKey = null | |||
| ) |
sets a single category
| oxcategory | $oContent the category | |
| string | $sKey optional, the key for that category, without a key, the category isjust added to the array |
| oxCategory.cmpCat | ( | $ | a, | |
| $ | b | |||
| ) |
categry sorting callback function
| oxcategory | $a first category | |
| oxcategory | $b second category |
| oxCategory.getNrOfArticles | ( | ) |
returns number or articles in category
| oxCategory.setNrOfArticles | ( | $ | iNum | ) |
sets the number or articles in category
| int | $iNum category product count setter |
| oxCategory.getIsVisible | ( | ) |
returns the visibility of a category, handles hidden and empty categories
| oxCategory.setIsVisible | ( | $ | blVisible | ) |
sets the visibilty of a category
| bool | $blVisible category visibility status setter |
| oxCategory.getPictureUrl | ( | ) |
Returns dyn image dir
| oxCategory.getLink | ( | $ | iLang = null |
) |
returns the url of the category
| oxCategory.setLink | ( | $ | sLink | ) |
returns the url of the category
| string | $sLink |
| oxCategory.getSqlActiveSnippet | ( | $ | blForceCoreTable = false |
) |
Returns SQL select string with checks if items are available
| bool | $blForceCoreTable forces core table usage (optional) |
Reimplemented from oxI18n.
| oxCategory.getStdLink | ( | $ | iLang = null |
) |
Returns standard URL to category
| oxCategory.getExpanded | ( | ) |
returns the expanded state of the category
| oxCategory.setExpanded | ( | $ | blExpanded | ) |
setsthe expanded state of the category
| bool | $blExpanded expanded status setter |
| oxCategory.getHasSubCats | ( | ) |
returns if a category has sub categories
| oxCategory.getHasVisibleSubCats | ( | ) |
returns if a category has visible sub categories
| oxCategory.setHasVisibleSubCats | ( | $ | blHasVisibleSubcats | ) |
sets the state of has visible sub categories for the category
| bool | $blHasVisibleSubcats marker if category has visible subcategories |
| oxCategory.getAttributes | ( | ) |
Loads and returns attribute list associated with this category
| oxCategory.getCatInLang | ( | $ | oActCategory = null |
) |
Loads and returns category in base language
| object | $oActCategory active category |
| oxCategory.setParentCategory | ( | $ | oCategory | ) |
Parent category setter
| oxcategory | $oCategory parent category object |
| oxCategory.getParentCategory | ( | ) |
Returns parent category object for current category (is it is available)
| static oxCategory.getRootId | ( | $ | sCategoryId | ) | [static] |
Returns root category id of a child category
| string | $sCategoryId category id |
| oxCategory.assignViewableRecord | ( | $ | sSelect | ) |
Before assigning the record from SQL it checks for viewable rights
| string | $sSelect SQL select |
| oxCategory._insert | ( | ) | [protected] |
Inserts new category (and updates existing node oxleft amd oxright accordingly). Returns true on success.
Reimplemented from oxBase.
| oxCategory._update | ( | ) | [protected] |
| oxCategory._setFieldData | ( | $ | sFieldName, | |
| $ | sValue, | |||
| $ | iDataType = oxField::T_TEXT | |||
| ) | [protected] |
Sets data field value
| string | $sFieldName index OR name (eg. 'oxarticles__oxtitle') of a data field to set | |
| string | $sValue value of data field | |
| int | $iDataType field type |
Reimplemented from oxBase.
oxCategory.$_aSubCats = array() [protected] |
oxCategory.$_aContentCats = array() [protected] |
oxCategory.$_sClassName = 'oxcategory' [protected] |
Reimplemented from oxI18n.
oxCategory.$_iNrOfArticles [protected] |
oxCategory.$_blIsVisible [protected] |
oxCategory.$_blExpanded [protected] |
oxCategory.$_blHasSubCats [protected] |
oxCategory.$_blHasVisibleSubCats [protected] |
oxCategory.$_blIsSeoObject = true [protected] |
Reimplemented from oxBase.
oxCategory.$_sDynImageDir = null [protected] |
1.5.5