Class cApiCategoryCollection
Category collection
- cGenericDb
- cItemBaseAbstract
- ItemCollection
- cApiCategoryCollection
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Timo Hummel
Located at classes/contenido/class.category.php
public
|
|
public
|
|
public
|
#
fetchLastCategoryTree( integer $idclient )
Returns the last category tree entry from the category table for a specific client. Last entry has no parentid and no postid. |
public
array
|
#
getCategoryIdsByClient( integer $idclient )
Returns list of categories (category ids) by passed client. |
public
integer
|
#
getNextPostCategoryId( integer $idcat )
Returns the id of category which is located after passed category id. |
public
integer
|
#
getParentsNextPostCategoryId( integer $idcat )
Returns the id of category which is located after passed category ids parent category. |
public
integer
|
#
getFirstChildCategoryId( integer $idcat, integer|null $idlang = null )
Returns id of first child category, where parent id is the same as passed id and the previous id is 0. |
public
array
|
#
getAllChildCategoryIds( integer $idcat, integer|null $idlang = null )
Returns list of all child category ids, only them on next deeper level (not recursive!) The returned array contains already the order of the categories. Example: ... this_category child_category (*) child_category2 (*) child_of_child_category2 child_category3 (*) ... (*) Returned category ids |
public
array
|
#
getAllCategoryIdsRecursive( integer $idcat, integer $idclient )
Returns list of all child category ids and their child category ids of passed category id. The list also contains the id of passed category. |
public
array
|
#
getAllCategoryIdsRecursive2( integer $idcat, integer $idclient )
Returns list of all child category ids and their child category ids of passed category id. The list also contains the id of passed category. |
_getPropertiesCollectionInstance(),
_getSecondDBInstance(),
escape()
|
_executeCallbacks(),
register(),
unregister()
|
CREATE_BEFORE,
CREATE_FAILURE,
CREATE_SUCCESS,
DELETE_BEFORE,
DELETE_FAILURE,
DELETE_SUCCESS,
STORE_BEFORE,
STORE_FAILURE,
STORE_SUCCESS
|
$_className,
$_oCache,
$_settings,
$db,
$lasterror,
$primaryKey,
$properties,
$secondDb,
$table,
$virgin
|