Implementation of a CONTENIDO Category.

version 0.9.0
author Rudi Bieller
copyright four for business AG
deprecated 2012-09-29 This class is not longer supported. Use cApiCategory 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 cApiCategory instead.

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

\cInvalidArgumentException if the given idcat or idlang is invalid

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

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

Exceptions

\cInvalidArgumentException if the given status is invalid

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

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

\cInvalidArgumentException if the given idcat or idlang is invalid

Returns

Return array with idcats of subcategories of given idcat

_getSubCategoriesAsArray(int $iIdcat) : array

Parameters

$iIdcat

int

Exceptions

\cInvalidArgumentException if the given idcat is invalid

Returns

array

 Properties

 

$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
 

$oSubCategories : \obj
access protected
 

$sAuthor 
 

$sCreated 
 

$sModified