Methods

get containers for a specified template configuration returns false if no configuratin was found

_getContainersByTplCfg(integer $idtplcfg) : array

Parameters

$idtplcfg

integer

id of the template

Returns

arrayarray with all containers and their values

get category id by article id

_getIdCatByIdArt(integer $idart) : int

returns false if the specified article doesn't belong to a category

Parameters

$idart

integer

id of the current article

Returns

intreturns the idcat for the current article

get template config id by article id returns false if the article has no configuration

_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

Parameters

$idart

integer

id of the article which configuration should be get

Returns

stringreturns the template configuration

get template config id by category id returns false if the category specified has not a template configuration

_getTplCfgByCatId(integer $idcat) : string

Parameters

$idcat

integer

id of the category which template config should be read out

Returns

stringtemplate configuration for the selected category

get cms_values returns false if no configuration was found

getData(integer $idcontainer) : array

Parameters

$idcontainer

integer

id for the container which settings should be returned

Returns

arrayarray with the settings for each cms_value of the specified container

get data

getDataForIdcat($idcat) 

Parameters

$idcat

get values from template pre configuration returns false if no pre configuration values were found

getPreConfigurationValues(integer $idart, integer $containerid) : array

Parameters

$idart

integer

id of the article

$containerid

integer

id for the container of which the settings should be returned

Returns

arraycontaining pre configuration values

reset data array

resetData() : void

constructor

templateConfig($idart) : void

Parameters

$idart

 Properties

 

global config variables

$cfg : array

 

client id

$client : int

 

stores configuration data

$data : array

 

database object

$db : object

 

language id

$lang : int