Implementation of a "Collection" of Contenido Categories.
version |
0.9.0 |
author |
Rudi Bieller |
copyright |
four for business AG <www.4fb.de>
{@internal
created 2008-02-15
modified 2008-02-25 Implemented ArrayAccess; added methods reverse(), ksort() and krsort().
}} |
Methods
Constructor.
__construct(DB_Contenido $oDb, array $aCfg) : void
Add a Contenido_Category object into internal array ("Collection")
add(Contenido_Category $oContenidoCategory, int $iOffset) : void
Interface method for Countable.
count() : int
Get internal property for Contenido-Idlang
getIdLang() : int
Sort list of Contenido_Category objects by assigned key in reverse order
krsort() : void
Sort list of Contenido_Category objects by assigned key
ksort() : void
Loads a range of Category-IDs.
load(array $aCategoryIds, boolean $bIncludeLanguage, int $iIdlang) : void
Parameters
$aCategoryIds
array
$bIncludeLanguage
boolean
$iIdlang
int
If $bIncludeLanguage is set to true, you must set this value, too or use setIdLang() before!
Interface method for ArrayAccess.
offsetExists(int $mOffset) : boolean
Parameters
$mOffset
int
Returns
boolean
Interface method for ArrayAccess.
offsetGet(int $mOffset) : \obj
Parameters
$mOffset
int
Returns
\obj
Interface method for ArrayAccess.
offsetSet(int $mOffset, mixed $mValue) : void
Parameters
$mOffset
int
$mValue
mixed
Interface method for ArrayAccess.
offsetUnset(int $mOffset) : void
Sort list of Contenido_Category objects in reverse order
reverse() : void
Set internal property for debugging on/off and choose appropriate debug object
setDebug(boolean $bDebug, string $sDebugMode) : void
Inherited
access |
public |
author |
Rudi Bieller |
inherited_from |
\Contenido_Category_Base::setDebug() |
Parameters
$bDebug
boolean
$sDebugMode
string
Set internal property for Contenido-Idlang
setIdLang(int $iIdlang) : void
If you need to load SubCategories, set to true and set how deep SubCategories should be loaded
setloadSubCategories(boolean $bLoad, int $iLoadDepth) : void
Parameters
$bLoad
boolean
$iLoadDepth
int
Properties
$aCfg
$aCfg : array
Inherited
access |
protected |
inherited_from |
\Contenido_Category_Base::$$aCfg |
$aContenidoCategories
$aContenidoCategories : array
$bDbg
$bDbg : boolean
Inherited
access |
protected |
inherited_from |
\Contenido_Category_Base::$$bDbg |
$bLoadSubCategories
$bLoadSubCategories : boolean
$iSubCategoriesLoadDepth
$iSubCategoriesLoadDepth : int
$oDb
$oDb : \obj
Inherited
access |
protected |
inherited_from |
\Contenido_Category_Base::$$oDb |
$oDbg
$oDbg : \obj
Inherited
access |
protected |
inherited_from |
\Contenido_Category_Base::$$oDbg |
$sDbgMode
$sDbgMode : string
Inherited
access |
protected |
inherited_from |
\Contenido_Category_Base::$$sDbgMode |