contenido\classes\class.templateconfig.php

Show: PublicProtectedPrivateinherited
Table of Contents
Project: Contenido Content Management System

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

Package: Default

Properties

>VPropertypublicarray $cfg
global config variables
Details
Type
array
>VPropertypublicint $client
client id
Details
Type
int
>VPropertypublicarray $data = array()
stores configuration data
Default valuearray()Details
Type
array
>VPropertypublicobject $db
database object
Details
Type
object
>VPropertypublicint $lang
language id
Details
Type
int

Methods

methodpublic_getContainersByTplCfg(integer $idtplcfg) : array

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

Parameters
NameTypeDescription
$idtplcfginteger

id of the template

Returns
TypeDescription
arrayarray with all containers and their values
methodpublic_getIdCatByIdArt(integer $idart) : int

get category id by article id

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

Parameters
NameTypeDescription
$idartinteger

id of the current article

Returns
TypeDescription
intreturns the idcat for the current article
methodpublic_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

Parameters
NameTypeDescription
$idartinteger

id of the article which configuration should be get

Returns
TypeDescription
stringreturns the template configuration
methodpublic_getTplCfgByCatId(integer $idcat) : string

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

Parameters
NameTypeDescription
$idcatinteger

id of the category which template config should be read out

Returns
TypeDescription
stringtemplate configuration for the selected category
methodpublicgetData(integer $idcontainer) : array

get cms_values returns false if no configuration was found

Parameters
NameTypeDescription
$idcontainerinteger

id for the container which settings should be returned

Returns
TypeDescription
arrayarray with the settings for each cms_value of the specified container
methodpublicgetDataForIdcat( $idcat) : void

get data

Parameters
NameTypeDescription
$idcat
methodpublicgetPreConfigurationValues(integer $idart, integer $containerid) : array

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

Parameters
NameTypeDescription
$idartinteger

id of the article

$containeridinteger

id for the container of which the settings should be returned

Returns
TypeDescription
arraycontaining pre configuration values
methodpublicresetData() : void

reset data array

methodpublictemplateConfig( $idart = 0) : void

constructor

Parameters
NameTypeDescription
$idart
Documentation was generated by phpDocumentor 2.0.0a12.