contenido\classes\class.templateconfig.php
Description: Template Config Object
Requirements:
- Author
- Marco Jahn
- Con_php_req
- 5.0
- Copyright
- four for business AG
- License
- http://www.contenido.org/license/LIZENZ.txt
- Link
- http://www.4fb.de
- Link
- http://www.contenido.org
- Package
- Contenido Backend classes
- Since
- file available since contenido release <= 4.6 {@internal created unknown modified 2008-06-30, Frederic Schneider, add security fix modified 2009-12-16, Dominik Ziegler, fixed sql table name $Id: class.templateconfig.php 1098 2009-12-17 09:06:11Z dominik.ziegler $: }}
- Version
- 1.0.2
\TemplateConfig
Properties
Methods


_getContainersByTplCfg(integer $idtplcfg) : array
get containers for a specified template configuration returns false if no configuratin was found
Name | Type | Description |
---|---|---|
$idtplcfg | integer | id of the template |
Type | Description |
---|---|
array | array with all containers and their values |


_getIdCatByIdArt(integer $idart) : int
get category id by article id
returns false if the specified article doesn't belong to a category
Name | Type | Description |
---|---|---|
$idart | integer | id of the current article |
Type | Description |
---|---|
int | returns the idcat for the current article |


_getTplCfgByArtId(integer $idart) : string
get template config id by article id returns false if the article has no configuration
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
Name | Type | Description |
---|---|---|
$idart | integer | id of the article which configuration should be get |
Type | Description |
---|---|
string | returns the template configuration |


_getTplCfgByCatId(integer $idcat) : string
get template config id by category id returns false if the category specified has not a template configuration
Name | Type | Description |
---|---|---|
$idcat | integer | id of the category which template config should be read out |
Type | Description |
---|---|
string | template configuration for the selected category |


getData(integer $idcontainer) : array
get cms_values returns false if no configuration was found
Name | Type | Description |
---|---|---|
$idcontainer | integer | id for the container which settings should be returned |
Type | Description |
---|---|
array | array with the settings for each cms_value of the specified container |


getPreConfigurationValues(integer $idart, integer $containerid) : array
get values from template pre configuration returns false if no pre configuration values were found
Name | Type | Description |
---|---|---|
$idart | integer | id of the article |
$containerid | integer | id for the container of which the settings should be returned |
Type | Description |
---|---|
array | containing pre configuration values |