Definition at line 10 of file oxcategorylist.php.
Public Member Functions | |
__construct ($sObjectsInListName= 'oxcategory') | |
buildTree ($sActCat, $blLoadFullTree, $blPerfLoadTreeForSearch, $blTopNaviLayout) | |
buildList ($blLoad) | |
setShopID ($sShopID) | |
getPath () | |
getHtmlPath () | |
getClickCat () | |
getClickRoot () | |
updateCategoryTree ($blVerbose=true, $sShopID=null) | |
__get ($sName) | |
Protected Member Functions | |
_getSelectString ($blReverse=false) | |
_getDepthSqlSnippet () | |
_ppRemoveInactiveCategories () | |
_ppAddPathInfo () | |
_ppAddContentCategories () | |
_ppBuildTree () | |
_ppAddDepthInformation () | |
_updateNodes ($oxRootId, $isroot, $thisRoot) | |
Protected Attributes | |
$_sObjectsInListName = 'oxcategory' | |
$_blHideEmpty = false | |
$_blForseFull = false | |
$_iForseLevel = 1 | |
$_sActCat = null | |
$_aPath = array() |
oxCategoryList.__construct | ( | $ | sObjectsInListName = 'oxcategory' |
) |
Class constructor, initiates parent constructor (parent.oxList()).
string | $sObjectsInListName optional parameter, the objects contained in the list, always oxcategory |
Reimplemented from oxList.
Definition at line 61 of file oxcategorylist.php.
oxCategoryList._getSelectString | ( | $ | blReverse = false |
) | [protected] |
constructs the sql string to get the category list
bool | $blReverse (list loading order, true for tree, false for simple list) |
Definition at line 74 of file oxcategorylist.php.
oxCategoryList._getDepthSqlSnippet | ( | ) | [protected] |
constructs the sql snippet responsible for dept optimizations, based on performance options: ( HideEmpty, ForseFull, ForseLevel, ActCat, isAdmin )
Definition at line 96 of file oxcategorylist.php.
oxCategoryList.buildTree | ( | $ | sActCat, | |
$ | blLoadFullTree, | |||
$ | blPerfLoadTreeForSearch, | |||
$ | blTopNaviLayout | |||
) |
Fetches reversed raw categories and does all necesarry postprocessing for removing invisible or forbidden categories, duilding oc navigation path, adding content categories and building tree structure.
string | $sActCat Active category (default null) | |
bool | $blLoadFullTree ($myConfig->getConfigParam( 'blLoadFullTree' ) ) | |
bool | $blPerfLoadTreeForSearch ($myConfig->getConfigParam( 'bl_perfLoadTreeForSearch' ) ) | |
bool | $blTopNaviLayout ($myConfig->getConfigParam( 'blTopNaviLayout' ) ) |
Definition at line 149 of file oxcategorylist.php.
oxCategoryList.buildList | ( | $ | blLoad | ) |
Fetches raw categories and does postprocessing for adding depth information
bool | $blLoad usually used with config option bl_perfLoadCatTree |
Definition at line 185 of file oxcategorylist.php.
oxCategoryList.setShopID | ( | $ | sShopID | ) |
setter for shopID
int | $sShopID ShopID |
Definition at line 210 of file oxcategorylist.php.
oxCategoryList.getPath | ( | ) |
oxCategoryList.getHtmlPath | ( | ) |
Returns HTML formated active category path
Definition at line 230 of file oxcategorylist.php.
oxCategoryList.getClickCat | ( | ) |
oxCategoryList.getClickRoot | ( | ) |
Getter for active root category
Definition at line 258 of file oxcategorylist.php.
oxCategoryList._ppRemoveInactiveCategories | ( | ) | [protected] |
Category list postprocessing routine, responsible for removal of inactive of forbidden categories, and subcategories.
Definition at line 270 of file oxcategorylist.php.
oxCategoryList._ppAddPathInfo | ( | ) | [protected] |
Category list postprocessing routine, responsible for generation of active category path
Definition at line 299 of file oxcategorylist.php.
oxCategoryList._ppAddContentCategories | ( | ) | [protected] |
Category list postprocessing routine, responsible adding of content categories
Definition at line 324 of file oxcategorylist.php.
oxCategoryList._ppBuildTree | ( | ) | [protected] |
Category list postprocessing routine, responsible building an sorting of hierarchical category tree
Definition at line 343 of file oxcategorylist.php.
oxCategoryList._ppAddDepthInformation | ( | ) | [protected] |
Category list postprocessing routine, responsible adding depth information. Requires not reversed category list!
Definition at line 368 of file oxcategorylist.php.
oxCategoryList.updateCategoryTree | ( | $ | blVerbose = true , |
|
$ | sShopID = null | |||
) |
Rebuilds nested sets information by updating oxleft and oxright category attributes, from oxparentid
bool | $blVerbose Set to true for outputing the update status for user, | |
string | $sShopID the shop id |
Definition at line 407 of file oxcategorylist.php.
oxCategoryList._updateNodes | ( | $ | oxRootId, | |
$ | isroot, | |||
$ | thisRoot | |||
) | [protected] |
Recursivly updates root nodes, this method is used (only) in updateCategoryTree()
string | $oxRootId rootid of tree | |
bool | $isroot is the current node root? | |
string | $thisRoot the id of the root |
Definition at line 440 of file oxcategorylist.php.
oxCategoryList.__get | ( | $ | sName | ) |
Extra getter to guarantee compatibility with templates
string | $sName variable name |
Reimplemented from oxList.
Definition at line 480 of file oxcategorylist.php.
oxCategoryList.$_sObjectsInListName = 'oxcategory' [protected] |
oxCategoryList.$_blHideEmpty = false [protected] |
Definition at line 24 of file oxcategorylist.php.
oxCategoryList.$_blForseFull = false [protected] |
Definition at line 31 of file oxcategorylist.php.
oxCategoryList.$_iForseLevel = 1 [protected] |
Definition at line 38 of file oxcategorylist.php.
oxCategoryList.$_sActCat = null [protected] |
Definition at line 45 of file oxcategorylist.php.
oxCategoryList.$_aPath = array() [protected] |
Definition at line 52 of file oxcategorylist.php.