contenido\classes\class.cms_date.php

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

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

Package: Default

Properties

>VPropertyprivate$aCfg
The contenido global
Details
Type
n/a
Access
private  
>VPropertyprivate$aFormat
The format value for the calendar
Details
Type
n/a
Access
private  
>VPropertyprivate$iIdArtLang
The contenido global
Details
Type
n/a
Access
private  
>VPropertyprivate$iNumOutput
static
The the static variable, controlls howmuch object exists
Details
Type
n/a
Access
private  
>VPropertyprivate$iNumberOfCms
The number of cms_date[?] parameter
Details
Type
n/a
Access
private  
>VPropertyprivate$iTotalCount
Total count of cms_date
Details
Type
n/a
Access
private  
>VPropertyprivate$oDB
The contenido database object
Details
Type
n/a
Access
private  
>VPropertyprivate$sCalName
The CmsDate object for call cmsDate functions
Details
Type
n/a
Access
private  
>VPropertyprivate$sContenidoLang
Language of contenido
Details
Type
n/a
Access
private  
>VPropertyprivate$sContent
Contains user input of cms_type
Details
Type
n/a
Access
private  
>VPropertyprivate$sDivSelectId
the id of Div Element select box
Details
Type
n/a
Access
private  
>VPropertyprivate$sEditAreaId
Input Field Id
Details
Type
n/a
Access
private  
>VPropertyprivate$sEditLink
The contenido Edit link
Details
Type
n/a
Access
private  
>VPropertyprivate$sJS
The output javascript
Details
Type
n/a
Access
private  
>VPropertyprivate$sSelectId
The id of select box
Details
Type
n/a
Access
private  

Methods

methodpublic__construct(\{string} $sContent, \{integer} $iNumberOfCms, \{integer} $iIdArtLang, \{string} $sEditLink, \{Object} $aCfg, \{Object} $aDB,  $iTotalCount,  $sContenidoLang) : void

The Cms_Date object constructor, initializes class variables

Parameters
NameTypeDescription
$sContent\{string}
$iNumberOfCms\{integer}
$iIdArtLang\{integer}
$sEditLink\{string}
$aCfg\{Object}
$aDB\{Object}
$iTotalCount
$sContenidoLang
methodpublicgetAllWidgetEdit() : \the

Edit and View all Widgets.

This function is calling in edit mode

Returns
TypeDescription
\theall widgets
methodpublicgetAllWidgetView() : \Returns

This function modified cms_content before it is displayed in frontend.

In this case this function is a dummy.

Returns
TypeDescription
\Returnsuser input of cms_type
methodprivategetCalendarButton() : \(String)calendar

This function builds a Contenido CMS Widget.

A Button for Calendar.

Returns
TypeDescription
\(String)calendarButton widget
methodprivategetDateFormats() : \the

This function set the date format for select-box.

Function displays current day format. For edit or add formats modified this function.

Returns
TypeDescription
\theformat as an array
methodprivategetEditingField() : \(String)

This function builds a Contenido CMS Widget.

A Editing Field or input field what we use for calendar.

Returns
TypeDescription
\(String)Editing Field widget
methodpublicgetJsScript() : \(String)

This functions given all js-script, what we need for calendar.

Set all js-script here

Returns
TypeDescription
\(String)js-script
methodprivategetLanguageContenido() : \(String)Current

This function gives formatted current language shortcut

Returns
TypeDescription
\(String)CurrentLanguage of Contenidos
methodprivategetOkButton() : \(String)Ok

This function builds a Contenido CMS Widget.

A Button for Submit (OK-Button).

Returns
TypeDescription
\(String)OkButton widget
methodprivategetSelectBox() : \(String)Select-Box

This function builds a Contenido CMS Widget.

A Select-Box what is given date formats. In auoFill we use the function getDateFormats: For edit or add formats modified this function.

Returns
TypeDescription
\(String)Select-Boxwidget
Documentation was generated by phpDocumentor 2.0.0a12.