Methods

__construct()

__construct() 

cDatatype()

cDatatype() 
Inherited
inherited_from \cDatatype::cDatatype()

cDatatypeDateTime()

cDatatypeDateTime() 
deprecated [2012-01-19] use __construct instead

Returns the effective value

get($iOverrideFormat) : mixed

Parameters

$iOverrideFormat

Exceptions

\cInvalidArgumentException if the given format is not supported yet

Returns

mixed

getDay()

getDay() 

getDayName()

getDayName($iDayOfWeek) 

Parameters

$iDayOfWeek

getDayOrder()

getDayOrder() 

getFirstDayOfWeek()

getFirstDayOfWeek() 

getLeapDay()

getLeapDay() 

getMonth()

getMonth() 

getMonthName()

getMonthName($iMonth) 

Parameters

$iMonth

getNumberOfMonthDays()

getNumberOfMonthDays($iMonth, $iYear) 

Parameters

$iMonth

$iYear

getYear()

getYear() 

Parses the given value to transfer into the datatype's format

parse(mixed $value) 

Parameters

$value

mixed

Renders the displayed value

render($iOverrideFormat) 

Parameters

$iOverrideFormat

Sets this datatype to a specific value

set(mixed $value, $iOverrideFormat) 

Parameters

$value

mixed

$iOverrideFormat

setCustomSourceFormat()

setCustomSourceFormat($sourceFormat) 

Parameters

$sourceFormat

setCustomTargetFormat()

setCustomTargetFormat($targetFormat) 

Parameters

$targetFormat

setDay()

setDay($iDay) 

Parameters

$iDay

setFirstDayOfWeek()

setFirstDayOfWeek($iDay) 

Parameters

$iDay

setMonth()

setMonth($iMonth) 

Parameters

$iMonth

setSourceFormat()

setSourceFormat($cSourceFormat) 

Parameters

$cSourceFormat

setTargetFormat()

setTargetFormat($cTargetFormat) 

Parameters

$cTargetFormat

setYear()

setYear($iYear) 

Parameters

$iYear

 Properties

 

$_iFirstDayOfWeek 
 

$_mDisplayedValue 
Inherited
inherited_from \cDatatype::$$_mDisplayedValue
 

$_mValue 
Inherited
inherited_from \cDatatype::$$_mValue

 Constants

 

Custom format

FORMAT_CUSTOM : int
 

The ISO Date format is CCYY-MM-DD HH:mm:SS

FORMAT_ISO : int
 

The locale format, as specified in the CONTENIDO backend

FORMAT_LOCALE : int
 

The locale format, as specified in the CONTENIDO backend

FORMAT_LOCALE_DATEONLY : int
 

The locale format, as specified in the CONTENIDO backend

FORMAT_LOCALE_TIMEONLY : int
 

The MySQL Timestamp is CCYYMMDDHHmmSS

FORMAT_MYSQL : int
 

The UNIX Timestamp is the amount of seconds passed since Jan 1 1970 00:00:00 GMT

FORMAT_UNIX : int
 

Friday

FRIDAY : int
 

Monday

MONDAY : int
 

Saturday

SATURDAY : int
 

Sunday

SUNDAY : int
 

Thursday

THURSDAY : int
 

Tuesday

TUESDAY : int
 

Wednesday

WEDNESDAY : int