Implementation of a Contenido Category.

version 0.9.0
author Rudi Bieller
copyright four for business AG <www.4fb.de> {@internal created 2008-02-15 }}

 Methods

Constructor.

__construct(DB_Contenido $oDb, array $aCfg) : void

access public
author Rudi Bieller

Parameters

$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. Optionally, also properties from catlang will be loaded into object.

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

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

$aCfg : array
Inherited

access protected
inherited_from \Contenido_Category_Base::$$aCfg
 

$bDbg

$bDbg : boolean
Inherited

access protected
inherited_from \Contenido_Category_Base::$$bDbg
 

$bHasSubCategories

$bHasSubCategories : boolean

access protected
 

$bLoadSubCategories

$bLoadSubCategories : boolean

access protected
 

$iCurrentSubCategoriesLoadDepth

$iCurrentSubCategoriesLoadDepth : int

access protected
 

$iIdCat

$iIdCat 

 

$iIdClient

$iIdClient 

 

$iIdLang

$iIdLang : int

access protected
 

$iIdParent

$iIdParent 

 

$iIdPost

$iIdPost 

 

$iIdPre

$iIdPre 

 

$iStatus

$iStatus 

 

$iSubCategoriesLoadDepth

$iSubCategoriesLoadDepth : int

access protected
 

$oCategoryLanguage

$oCategoryLanguage : \obj

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
 

$oSubCategories

$oSubCategories : \obj

access protected
 

$sAuthor

$sAuthor 

 

$sCreated

$sCreated 

 

$sDbgMode

$sDbgMode : string
Inherited

access protected
inherited_from \Contenido_Category_Base::$$sDbgMode
 

$sModified

$sModified 

 

DB_Contenido

$_oDb : \obj

access private