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

access public
author Rudi Bieller

Parameters

$aCfg

array

Add a Contenido_Category object into internal array ("Collection")

add(Contenido_Category $oContenidoCategory, int $iOffset) : void

access public
author Rudi Bieller

Parameters

$oContenidoCategory

\Contenido_Category

$iOffset

int

Interface method for Countable.

count() : int

access public
author Rudi Bieller

Returns

int

Get internal property for Contenido-Idlang

getIdLang() : int

access public
author Rudi Bieller

Returns

int

Interface method for Iterator.

getIterator() : \ArrayObject

access public
author Rudi Bieller

Returns

Sort list of Contenido_Category objects by assigned key in reverse order

krsort() : void

access public
author Rudi Bieller

Sort list of Contenido_Category objects by assigned key

ksort() : void

access public
author Rudi Bieller

Loads a range of Category-IDs.

load(array $aCategoryIds, boolean $bIncludeLanguage, int $iIdlang) : void

access public
author Rudi Bieller

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

access public
author Rudi Bieller

Parameters

$mOffset

int

Returns

boolean

Interface method for ArrayAccess.

offsetGet(int $mOffset) : \obj

access public
author Rudi Bieller

Parameters

$mOffset

int

Returns

\obj

Interface method for ArrayAccess.

offsetSet(int $mOffset, mixed $mValue) : void

access public
author Rudi Bieller

Parameters

$mOffset

int

$mValue

mixed

Interface method for ArrayAccess.

offsetUnset(int $mOffset) : void

access public
author Rudi Bieller

Parameters

$mOffset

int

Sort list of Contenido_Category objects in reverse order

reverse() : void

access public
author Rudi Bieller

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

access public
author Rudi Bieller

Parameters

$iIdlang

int

If you need to load SubCategories, set to true and set how deep SubCategories should be loaded

setloadSubCategories(boolean $bLoad, int $iLoadDepth) : void

access public
author Rudi Bieller

Parameters

$bLoad

boolean

$iLoadDepth

int

 Properties

 

$aCfg

$aCfg : array
Inherited

access protected
inherited_from \Contenido_Category_Base::$$aCfg
 

$aContenidoCategories

$aContenidoCategories : array

access protected
 

$bDbg

$bDbg : boolean
Inherited

access protected
inherited_from \Contenido_Category_Base::$$bDbg
 

$bLoadSubCategories

$bLoadSubCategories : boolean

access protected
 

$iIdLang

$iIdLang : int

access protected
 

$iSubCategoriesLoadDepth

$iSubCategoriesLoadDepth : int

access protected
 

$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