Object of a CONTENIDO template configuration
Class to get template configurations for the current article or the current category
Example (article configuration):
$tplCfg = new templateConfig($idart); //get template configuration for current article $exampleAr = $tplCfg->getData(20); //get all informations for container 20 for this template
Example (category configuration): $tplCfg = new templateConfig(); //leave empty cause you only want a category configuration $tplCfg->getDataForIdcat ($idcat); $exampleAr = $tplCfg->getData(20); //get all informations for container 20 for this template
$exampleAr: $exampleAr[0] => ""
"0" specifies the CMS_VALUE set in modules "" contains the configuration data
| author | Marco Jahn |
|---|---|
| version | 1.0 |
| copyright | four for business 2003 |
| package | Contenido_API |
| deprecated | 2012-08-24 Use cApiTemplateConfiguration/cApiTemplateConfigurationCollection instead |
_getContainersByTplCfg(integer $idtplcfg) : array
| deprecated | 2012-08-24 Use cApiTemplateConfiguration/cApiTemplateConfigurationCollection instead |
|---|
integerid of the template
arrayarray with all containers and their values_getIdCatByIdArt(integer $idart) : int
returns false if the specified article doesn't belong to a category
| deprecated | 2012-08-24 Use cApiTemplateConfiguration/cApiTemplateConfigurationCollection instead |
|---|
integerid of the current article
intreturns the idcat for the current article_getTplCfgByArtId(integer $idart) : string
returns the template configuration for the current article if the article has not a template configuration it will return the configuration for the current category
| deprecated | 2012-08-24 Use cApiTemplateConfiguration/cApiTemplateConfigurationCollection instead |
|---|
integerid of the article which configuration should be get
stringreturns the template configuration_getTplCfgByCatId(integer $idcat) : string
| deprecated | 2012-08-24 Use cApiTemplateConfiguration/cApiTemplateConfigurationCollection instead |
|---|
integerid of the category which template config should be read out
stringtemplate configuration for the selected categorygetData(integer $idcontainer) : array
| deprecated | 2012-08-24 Use cApiTemplateConfiguration/cApiTemplateConfigurationCollection instead |
|---|
integerid for the container which settings should be returned
arrayarray with the settings for each cms_value of the specified containergetDataForIdcat($idcat)
| deprecated | 2012-08-24 Use cApiTemplateConfiguration/cApiTemplateConfigurationCollection instead |
|---|
getPreConfigurationValues(integer $idart, integer $containerid) : array
| deprecated | 2012-08-24 Use cApiTemplateConfiguration/cApiTemplateConfigurationCollection instead |
|---|
integerid of the article
integerid for the container of which the settings should be returned
arraycontaining pre configuration valuesresetData() : void
| deprecated | 2012-08-24 Use cApiTemplateConfiguration/cApiTemplateConfigurationCollection instead |
|---|
templateConfig($idart) : void
| deprecated | 2012-08-24 Use cApiTemplateConfiguration/cApiTemplateConfigurationCollection instead |
|---|
$cfg : array
$client : int
$data : array
$db : object
$lang : int