contenido\classes\class.cms_date.php
Description: Contenido class for handling cms type date. This cms type allows to select date with DHTML Calendar it is also possible to select a format in which the date is displayed. It is also possible to display date and time. This class is an example how to handle contenido cms type in a class. In database this class is called in cms type cms_date. JavaScript handling of DHTML Calendar is handled in contenido js calendar class CmsDate.js
Requirements:
- Author
- Bilal Arslan, Timo Trautmann
- Con_notice
- Js class CmsDate.js required
- 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
- Since
- file available since contenido release <= 4.8.7 {@internal created 2007-07-14 Bilal Arslan, Timo Trautmann modified 2008-07-28 Bilal Arslan, added new Date format timestamp modified 2009-04-14 OliverL, added class in Edit- & Save-Link $Id }}
- Version
- 1.0.3
\Cms_Date
Properties


$iNumOutput
- Type
- n/a
- Access
- private
Methods


__construct(\{string} $sContent, \{integer} $iNumberOfCms, \{integer} $iIdArtLang, \{string} $sEditLink, \{Object} $aCfg, \{Object} $aDB, $iTotalCount, $sContenidoLang) : void
The Cms_Date object constructor, initializes class variables
Name | Type | Description |
---|---|---|
$sContent | \{string} | |
$iNumberOfCms | \{integer} | |
$iIdArtLang | \{integer} | |
$sEditLink | \{string} | |
$aCfg | \{Object} | |
$aDB | \{Object} | |
$iTotalCount | ||
$sContenidoLang |


getAllWidgetEdit() : \the
Edit and View all Widgets.
This function is calling in edit mode
Type | Description |
---|---|
\the | all widgets |


getAllWidgetView() : \Returns
This function modified cms_content before it is displayed in frontend.
In this case this function is a dummy.
Type | Description |
---|---|
\Returns | user input of cms_type |


getCalendarButton() : \(String)calendar
This function builds a Contenido CMS Widget.
A Button for Calendar.
Type | Description |
---|---|
\(String)calendar | Button widget |


getDateFormats() : \the
This function set the date format for select-box.
Function displays current day format. For edit or add formats modified this function.
Type | Description |
---|---|
\the | format as an array |


getEditingField() : \(String)
This function builds a Contenido CMS Widget.
A Editing Field or input field what we use for calendar.
Type | Description |
---|---|
\(String) | Editing Field widget |


getJsScript() : \(String)
This functions given all js-script, what we need for calendar.
Set all js-script here
Type | Description |
---|---|
\(String) | js-script |


getLanguageContenido() : \(String)Current
This function gives formatted current language shortcut
Type | Description |
---|---|
\(String)Current | Language of Contenidos |


getOkButton() : \(String)Ok
This function builds a Contenido CMS Widget.
A Button for Submit (OK-Button).
Type | Description |
---|---|
\(String)Ok | Button widget |