|
OXID eShop CE
4.10.1
|
Inheritance diagram for oxCategoryList:
Collaboration diagram for oxCategoryList:Public Member Functions | |
| __construct ($sObjectsInListName= 'oxcategory') | |
| setLoadFull ($blForceFull) | |
| getLoadFull () | |
| setLoadLevel ($iForceLevel) | |
| getLoadLevel () | |
| load () | |
| buildTree ($sActCat) | |
| loadList () | |
| setShopID ($sShopID) | |
| getPath () | |
| getClickCat () | |
| getClickRoot () | |
| updateCategoryTree ($blVerbose=true, $sShopID=null) | |
| getUpdateInfo () | |
| __get ($sName) | |
Public Member Functions inherited from oxList | |
| offsetExists ($offset) | |
| offsetGet ($offset) | |
| offsetSet ($offset, $oBase) | |
| offsetUnset ($offset) | |
| arrayKeys () | |
| rewind () | |
| current () | |
| key () | |
| prev () | |
| next () | |
| valid () | |
| count () | |
| clear () | |
| assign ($aArray) | |
| reverse () | |
| getArray () | |
| init ($sObjectName, $sCoreTable=null) | |
| getBaseObject () | |
| setBaseObject ($oObject) | |
| selectString ($sSql) | |
| add ($oObject) | |
| assignArray ($aData) | |
| setSqlLimit ($iStart, $iRecords) | |
| containsFieldValue ($oVal, $sFieldName) | |
| getList () | |
Public Member Functions inherited from oxSuperCfg | |
| __call ($sMethod, $aArgs) | |
| __construct () | |
| getConfig () | |
| setConfig ($oConfig) | |
| getSession () | |
| setSession ($oSession) | |
| getUser () | |
| setUser ($oUser) | |
| isAdmin () | |
| setAdminMode ($blAdmin) | |
Protected Member Functions | |
| _getSqlSelectFieldsForTree ($sTable, $aColumns=null) | |
| _getSelectString ($blReverse=false, $aColumns=null, $sOrder=null) | |
| _getDepthSqlSnippet ($oCat) | |
| _getDepthSqlUnion ($oCat, $aColumns=null) | |
| _loadFromDb () | |
| _ppLoadFullCategory ($sId) | |
| _ppRemoveInactiveCategories () | |
| _ppAddPathInfo () | |
| _ppAddContentCategories () | |
| _ppBuildTree () | |
| _ppAddDepthInformation () | |
| _addDepthInfo ($aTree, $oCat, $sDepth="") | |
| _updateNodes ($oxRootId, $isRoot, $thisRoot) | |
Protected Member Functions inherited from oxList | |
| _assignElement ($oListObject, $aDbFields) | |
| _getFieldLongName ($sFieldName) | |
Protected Attributes | |
| $_sObjectsInListName = 'oxcategory' | |
| $_blHideEmpty = false | |
| $_blForceFull = false | |
| $_iForceLevel = 2 | |
| $_sActCat = null | |
| $_aPath = array() | |
| $_aUpdateInfo = array() | |
Protected Attributes inherited from oxList | |
| $_aArray = array() | |
| $_blRemovedActive = false | |
| $_sObjectsInListName = 'oxBase' | |
| $_sCoreTable = null | |
| $_sShopID = null | |
| $_aSqlLimit = array() | |
Additional Inherited Members | |
Static Protected Attributes inherited from oxSuperCfg | |
| static | $_oConfig = null |
| static | $_oSession = null |
| static | $_oRights = null |
| static | $_oActUser = null |
| static | $_blIsAdmin = null |
Category list manager. Collects available categories, performs some SQL queries to create category list structure.
Definition at line 10 of file oxcategorylist.php.
| 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 69 of file oxcategorylist.php.
| oxCategoryList::__get | ( | $sName | ) |
Extra getter to guarantee compatibility with templates
| string | $sName | variable name |
Reimplemented from oxList.
Definition at line 632 of file oxcategorylist.php.
|
protected |
Recursive function to add depth information
| array | $aTree | new category tree |
| object | $oCat | category object |
| string | $sDepth | string to show category depth |
Definition at line 527 of file oxcategorylist.php.
|
protected |
constructs the sql snippet responsible for depth optimizations, loads only selected category's siblings
| oxCategory | $oCat | selected category |
Definition at line 199 of file oxcategorylist.php.
|
protected |
returns sql snippet for union of select category's and its upper level siblings of the same root (siblings of the category, and parents and grandparents etc)
| oxCategory | $oCat | current category object |
| array | $aColumns | required column names (optional) |
Definition at line 235 of file oxcategorylist.php.
|
protected |
constructs the sql string to get the category list
| bool | $blReverse | list loading order, true for tree, false for simple list (optional, default false) |
| array | $aColumns | required column names (optional) |
| string | $sOrder | order by string (optional) |
Definition at line 163 of file oxcategorylist.php.
|
protected |
return fields to select while loading category tree
| string | $sTable | table name |
| array | $aColumns | required column names (optional) |
Definition at line 128 of file oxcategorylist.php.
|
protected |
|
protected |
Category list postprocessing routine, responsible adding of content categories
Definition at line 460 of file oxcategorylist.php.
|
protected |
Category list postprocessing routine, responsible for making flat category tree and adding depth information. Requires reversed category list!
Definition at line 498 of file oxcategorylist.php.
|
protected |
Category list postprocessing routine, responsible for generation of active category path
Definition at line 438 of file oxcategorylist.php.
|
protected |
Category list postprocessing routine, responsible building an sorting of hierarchical category tree
Definition at line 477 of file oxcategorylist.php.
|
protected |
set full category object in tree
| string | $sId | category id |
Definition at line 319 of file oxcategorylist.php.
|
protected |
Category list postprocessing routine, responsible for removal of inactive of forbidden categories, and subcategories.
Definition at line 398 of file oxcategorylist.php.
|
protected |
Recursively 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 590 of file oxcategorylist.php.
| oxCategoryList::buildTree | ( | $sActCat | ) |
Fetches reversed raw categories and does all necessary postprocessing for removing invisible or forbidden categories, building oc navigation path, adding content categories and building tree structure.
| string | $sActCat | Active category (default null) |
Definition at line 285 of file oxcategorylist.php.
| oxCategoryList::getClickCat | ( | ) |
| oxCategoryList::getClickRoot | ( | ) |
Getter for active root category
Definition at line 388 of file oxcategorylist.php.
| oxCategoryList::getLoadFull | ( | ) |
| oxCategoryList::getLoadLevel | ( | ) |
| oxCategoryList::getPath | ( | ) |
| oxCategoryList::getUpdateInfo | ( | ) |
| oxCategoryList::load | ( | ) |
Load category list data
Definition at line 269 of file oxcategorylist.php.
| oxCategoryList::loadList | ( | ) |
Fetches raw categories and does postprocessing for adding depth information
Definition at line 335 of file oxcategorylist.php.
| oxCategoryList::setLoadFull | ( | $blForceFull | ) |
Set how to load tree true - for full tree
| boolean | $blForceFull | - true to load full |
Definition at line 80 of file oxcategorylist.php.
| oxCategoryList::setLoadLevel | ( | $iForceLevel | ) |
Set tree level 1- load root or 2 - root and second level
| int | $iForceLevel | - level number |
Definition at line 100 of file oxcategorylist.php.
| oxCategoryList::setShopID | ( | $sShopID | ) |
| 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 output the update status for user, |
| string | $sShopID | the shop id |
Definition at line 548 of file oxcategorylist.php.
|
protected |
Definition at line 53 of file oxcategorylist.php.
|
protected |
Definition at line 60 of file oxcategorylist.php.
|
protected |
Definition at line 32 of file oxcategorylist.php.
|
protected |
Definition at line 25 of file oxcategorylist.php.
|
protected |
Definition at line 39 of file oxcategorylist.php.
|
protected |
Definition at line 46 of file oxcategorylist.php.
|
protected |
Definition at line 18 of file oxcategorylist.php.