contenido\includes\functions.tpl.php
Project:
Contenido Content Management System
Description:
Define the Template related functions
Requirements:
- Author
- Olaf Niemann
- 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 includes
- Since
- file available since contenido release <= 4.6
{@internal
created 2003-01-21
modified 2008-06-26, Frederic Schneider, add security fix
modified 2008-06-30 timo.trautmann added fix module settings were also copied in function tplDuplicateTemplate
modified 2009-01-08, Timo Trautmann fixed bug: Changes in Head Containers in visualedit were not stored
$Id: functions.tpl.php 1199 2010-08-24 14:31:44Z timo.trautmann $:
}}
- Version
- 1.0.1
Functions


tplBrowseLayoutForContainers( $idlay) : string
Browse a specific layout for containers
ParametersName | Type | Description |
---|
$idlay | | |
---|
ReturnsType | Description |
---|
string | &-seperated String of all containers |
Details- Author
- Jan Lengowski
- Copyright
- four for business AG


tplDeleteTemplate(int $idtpl) : \$new_idtpl
ParametersName | Type | Description |
---|
$idtpl | int | ID of the template to duplicate |
---|
ReturnsType | Description |
---|
\$new_idtpl | ID of the duplicated template |
Details- Author
- Olaf Niemann
- Author
- Jan Lengowski
- Copyright
- four for business AG


tplDuplicateTemplate(int $idtpl) : \$new_idtpl
ParametersName | Type | Description |
---|
$idtpl | int | ID of the template to duplicate |
---|
ReturnsType | Description |
---|
\$new_idtpl | ID of the duplicated template |
Details- Author
- Jan Lengowski
- Copyright
- four for business AG


tplEditTemplate( $changelayout, $idtpl, $name, $description, $idlay, $c, $default) : void
Edit or create a new Template
ParametersName | Type | Description |
---|
$changelayout | | |
---|
$idtpl | | |
---|
$name | | |
---|
$description | | |
---|
$idlay | | |
---|
$c | | |
---|
$default | | |
---|
Details- Author
- Olaf Niemann
- Author
- Jan Lengowski
- Copyright
- four for business AG


tplGetContainerDefault( $idlay, int $container) : array
Retrieve the default module
ParametersName | Type | Description |
---|
$idlay | | |
---|
$container | int | Container number |
---|
ReturnsType | Description |
---|
array | Allowed container types |


tplGetContainerMode( $idlay, int $container) : string
Retrieve the container mode
ParametersName | Type | Description |
---|
$idlay | | |
---|
$container | int | Container number |
---|
ReturnsType | Description |
---|
string | Container name |


tplGetContainerName( $idlay, int $container) : string
Retrieve the container name
ParametersName | Type | Description |
---|
$idlay | | |
---|
$container | int | Container number |
---|
ReturnsType | Description |
---|
string | Container name |


tplGetContainerTypes( $idlay, int $container) : array
Retrieve the allowed container types
ParametersName | Type | Description |
---|
$idlay | | |
---|
$container | int | Container number |
---|
ReturnsType | Description |
---|
array | Allowed container types |


tplGetInUsedData(int $idtpl) : array
Get used datas if a template is in use
ParametersName | Type | Description |
---|
$idtpl | int | Template ID |
---|
ReturnsType | Description |
---|
array | - category name, article name |
Details- Author
- Munkh-Ulzii Balidar
- Copyright
- four for business AG


tplIsTemplateInUse(int $idtpl) : bool
Checks if a template is in use
ParametersName | Type | Description |
---|
$idtpl | int | Template ID |
---|
ReturnsType | Description |
---|
bool | is template in use |
Details- Author
- Jan Lengowski
- Copyright
- four for business AG
modified Munkh-Ulzii Balidar, improved the sql query without while loop


tplPreparseLayout( $idlay) : \none
Preparse the layout for caching purposes
ParametersName | Type | Description |
---|
$idlay | | |
---|
Returns 

tplcfgDuplicate(int $idtplcfg) : int
Copies a complete template configuration
ParametersName | Type | Description |
---|
$idtplcfg | int | Template Configuration ID |
---|
ReturnsType | Description |
---|
int | new template configuration ID |