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
getCategoryLanguage()
getCategoryLanguage()
getDateCreated()
getDateCreated()
getDateModified()
getDateModified()
getIdClient()
getIdClient()
getIdParent()
getIdParent()
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.
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
Returns
boolean
setAuthor()
setAuthor($sAuthor)
setCategoryLanguage()
setCategoryLanguage(\Contenido_Category_Language $oCatLang)
setDateCreated()
setDateCreated($sDateCreated)
setDateModified()
setDateModified($sDateModified)
Parameters
$sDateModified
setIdCat()
setIdCat($iIdcat)
setIdClient()
setIdClient($iIdcient)
setIdLang()
setIdLang($iIdlang)
setIdParent()
setIdParent($iIdcatParent)
setIdPost()
setIdPost($iIdcatPost)
setIdPre()
setIdPre($iIdcatPre)
setStatus()
setStatus($iStatus)
Parameters
$iStatus
Exceptions
Set internal property with SubCategories of current Category
setSubCategories(\Contenido_Categories $oCategories) : void
If you need to load SubCategories, set to true and set how deep SubCategories should be loaded
setloadSubCategories(boolean $bLoad, int $iLoadDepth) : void
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
Returns
Return array with idcats of subcategories of given idcat
_getSubCategoriesAsArray(int $iIdcat) : array
Parameters
$iIdcat
int
Exceptions
Returns
array
Properties
$bHasSubCategories : boolean
$bLoadSubCategories : boolean
$iCurrentSubCategoriesLoadDepth : int
$iSubCategoriesLoadDepth : int
$oCategoryLanguage : \obj