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
getCategoryLanguage()
getCategoryLanguage()
getDateCreated()
getDateCreated()
getDateModified()
getDateModified()
getIdClient()
getIdClient()
getIdParent()
getIdParent()
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
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
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)
setIdClient()
setIdClient($iIdcient)
setIdLang()
setIdLang($iIdlang)
setIdParent()
setIdParent($iIdcatParent)
setIdPost()
setIdPost($iIdcatPost)
setIdPre()
setIdPre($iIdcatPre)
setStatus()
setStatus($iStatus)
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!
Returns
Return array with idcats of subcategories of given idcat
_getSubCategoriesAsArray(int $iIdcat) : array
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
$bLoadSubCategories
$bLoadSubCategories : boolean
$iCurrentSubCategoriesLoadDepth
$iCurrentSubCategoriesLoadDepth : int
$iSubCategoriesLoadDepth
$iSubCategoriesLoadDepth : int
$oCategoryLanguage
$oCategoryLanguage : \obj
$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
$sDbgMode
$sDbgMode : string
Inherited
access |
protected |
inherited_from |
\Contenido_Category_Base::$$sDbgMode |
DB_Contenido
$_oDb : \obj