Implementation of a "Collection" of CONTENIDO Categories.

version 0.9.0
author Rudi Bieller
copyright four for business AG
deprecated 2012-09-29 This class is not longer supported. Use cCategoryHelper instead.

 Methods

Constructor.

__construct(\DB_Contenido $oDb, array $aCfg) : void
access public
author Rudi Bieller
deprecated 2012-09-29 This class is not longer supported. Use cCategoryHelper instead.

Parameters

$oDb

\DB_Contenido

$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 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

 

$aContenidoCategories : array
access protected
 

$bLoadSubCategories : boolean
access protected
 

$iIdLang : int
access protected
 

$iSubCategoriesLoadDepth : int
access protected