Implementation of a Contenido Category.

version 0.9.0
author Rudi Bieller
copyright four for business AG {@internal created 2008-02-15 }}

 Methods

Constructor.

__construct(\DB_Contenido $oDb, array $aCfg) : void
access public
author Rudi Bieller

Parameters

$oDb

\DB_Contenido

$aCfg

array

getAuthor()

getAuthor() 

getCategoryLanguage()

getCategoryLanguage() 

getDateCreated()

getDateCreated() 

getDateModified()

getDateModified() 

getIdCat()

getIdCat() 

getIdClient()

getIdClient() 

getIdLang()

getIdLang() 

getIdParent()

getIdParent() 

getIdPost()

getIdPost() 

getIdPre()

getIdPre() 

getStatus()

getStatus() 

getSubCategories()

getSubCategories() 

Loads properties for a given idcat.

load(int $iIdCat, boolean $bIncludeLanguage, int $iIdlang) : boolean

Optionally, also properties from catlang will be loaded into object.

access public
author Rudi Bieller

Parameters

$iIdCat

int

$bIncludeLanguage

boolean

If set to true, also creates Contenido_Category_Language object

$iIdlang

int

If $bIncludeLanguage is set to true, you must set this value, too or use setIdLang() before!

Exceptions

\InvalidArgumentException
\Exception TODO

Returns

boolean

setAuthor()

setAuthor($sAuthor) 

Parameters

$sAuthor

setCategoryLanguage()

setCategoryLanguage(\Contenido_Category_Language $oCatLang) 

Parameters

$oCatLang

setDateCreated()

setDateCreated($sDateCreated) 

Parameters

$sDateCreated

setDateModified()

setDateModified($sDateModified) 

Parameters

$sDateModified

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

setIdCat()

setIdCat($iIdcat) 

Parameters

$iIdcat

setIdClient()

setIdClient($iIdcient) 

Parameters

$iIdcient

setIdLang()

setIdLang($iIdlang) 

Parameters

$iIdlang

setIdParent()

setIdParent($iIdcatParent) 

Parameters

$iIdcatParent

setIdPost()

setIdPost($iIdcatPost) 

Parameters

$iIdcatPost

setIdPre()

setIdPre($iIdcatPre) 

Parameters

$iIdcatPre

setStatus()

setStatus($iStatus) 

Parameters

$iStatus

Set internal property with SubCategories of current Category

setSubCategories(\Contenido_Categories $oCategories) : void
access public
author Rudi Bieller

Parameters

$oCategories

\Contenido_Categories

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

Loads SubCategories depending on values for $this->bLoadSubCategories and $this->iSubCategoriesLoadDepth

_getSubCategories(int $iIdcat, boolean $bIncludeLanguage, int $iIdlang) : \Contenido_Categories
access private
author Rudi Bieller

Parameters

$iIdcat

int

$bIncludeLanguage

boolean

If set to true, also creates Contenido_Category_Language object

$iIdlang

int

If $bIncludeLanguage is set to true, you must set this value, too or use setIdLang() before!

Returns

Return array with idcats of subcategories of given idcat

_getSubCategoriesAsArray(int $iIdcat) : array
access private
author Rudi Bieller

Parameters

$iIdcat

int

Returns

array

 Properties

 

$aCfg : array
Inherited
access protected
inherited_from \Contenido_Category_Base::$$aCfg
 

$bDbg : boolean
Inherited
access protected
inherited_from \Contenido_Category_Base::$$bDbg
 

$bHasSubCategories : boolean
access protected
 

$bLoadSubCategories : boolean
access protected
 

$iCurrentSubCategoriesLoadDepth : int
access protected
 

$iIdCat 
 

$iIdClient 
 

$iIdLang : int
access protected
 

$iIdParent 
 

$iIdPost 
 

$iIdPre 
 

$iStatus 
 

$iSubCategoriesLoadDepth : int
access protected
 

$oCategoryLanguage : \obj
access protected
 

$oDb : \obj
Inherited
access protected
inherited_from \Contenido_Category_Base::$$oDb
 

$oDbg : \obj
Inherited
access protected
inherited_from \Contenido_Category_Base::$$oDbg
 

$oSubCategories : \obj
access protected
 

$sAuthor 
 

$sCreated 
 

$sDbgMode : string
Inherited
access protected
inherited_from \Contenido_Category_Base::$$sDbgMode
 

$sModified 
 

DB_Contenido

$_oDb : \obj
access private