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 |
---|
integer
id of the template
array
array 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 |
---|
integer
id of the current article
int
returns 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 |
---|
integer
id of the article which configuration should be get
string
returns the template configuration_getTplCfgByCatId(integer $idcat) : string
deprecated | 2012-08-24 Use cApiTemplateConfiguration/cApiTemplateConfigurationCollection instead |
---|
integer
id of the category which template config should be read out
string
template configuration for the selected categorygetData(integer $idcontainer) : array
deprecated | 2012-08-24 Use cApiTemplateConfiguration/cApiTemplateConfigurationCollection instead |
---|
integer
id for the container which settings should be returned
array
array 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 |
---|
integer
id of the article
integer
id for the container of which the settings should be returned
array
containing 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