contenido\classes\class.layout.php
Project:
Contenido Content Management System
Description: Class for layout information and management
Requirements:
- Author
- Timo A. Hummel
- 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, Dominik Ziegler, add security fix modified 2008-07-02, Frederic Schneider, change sql-escapes modified 2009-10-27, OliverL, replace toInteger() to escapeString() in function getLayoutID() modified 2010-08-17, Munkh-Ulzii Balidar, - changed the code compatible to php5 - added new property aUsedTemplates and saved the information of used templates - added new method getUsedTemplates $Id: class.layout.php 1199 2010-08-24 14:31:44Z timo.trautmann $: }}
- Version
- 1.0.2
\Layout
Package: Default



Properties
Methods

getAvailableLayouts() : arraygetAvailableLayouts() Returns all layouts available in the system
Returns
| Type | Description |
|---|---|
| array | Array with id and name entries |

getLayoutID( $layout) : intgetLayoutID() Returns the idlayout for a given layout name
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $layout | String with the Layoutname |
| Type | Description |
|---|---|
| int | Integer with the ID for the layout |

getLayoutName( $layout) : stringgetLayoutName() Returns the name for a given layoutid
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $layout |
| Type | Description |
|---|---|
| string | String with the name for the layout |

getUsedTemplates() : arrayGet the informations of used templates
Returns
| Type | Description |
|---|---|
| array | template data |