Overview

Packages

  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Datatype
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationMain
    • NavigationTop
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • cDatatype
  • cDatatypeCurrency
  • cDatatypeDateTime
  • cDatatypeNumber
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class cDatatypeDateTime

Datetime datatype class.

cDatatype
Extended by cDatatypeDateTime
Package: Core\Datatype
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: unknown
Located at classes/datatypes/class.datatype.datetime.php
Methods summary
public
# __construct( )

Overrides

cDatatype::__construct()
public
# setCustomTargetFormat( mixed $targetFormat )
public
# setCustomSourceFormat( mixed $sourceFormat )
public
# setSourceFormat( mixed $cSourceFormat )
public
# setTargetFormat( mixed $cTargetFormat )
public
# setYear( mixed $iYear )
public
# getYear( )
public
# setMonth( mixed $iMonth )
public
# getMonth( )
public
# setDay( mixed $iDay )
public
# getDay( )
public
# getMonthName( mixed $iMonth )
public
# getDayName( mixed $iDayOfWeek )
public
# getDayOrder( )
public
# getNumberOfMonthDays( mixed $iMonth = false, mixed $iYear = false )
public
# setFirstDayOfWeek( mixed $iDay )
public
# getFirstDayOfWeek( )
public
# getLeapDay( )
public
# set( mixed $value, mixed $iOverrideFormat = false )

Sets this datatype to a specific value

Sets this datatype to a specific value

Parameters

$value
mixed
$value
$iOverrideFormat

Overrides

cDatatype::set()
public mixed
# get( mixed $iOverrideFormat = false )

Returns

mixed

Throws

cInvalidArgumentException
if the given format is not supported yet

Overrides

cDatatype::get()
public
# render( mixed $iOverrideFormat = false )

Renders the displayed value

Renders the displayed value

Overrides

cDatatype::render()
public
# parse( mixed $value )

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

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

Parameters

$value
mixed
$value

Overrides

cDatatype::parse()
Constants summary
integer FORMAT_UNIX 1
#

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

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

integer FORMAT_ISO 2
#

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

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

integer FORMAT_LOCALE 3
#

The locale format, as specified in the CONTENIDO backend

The locale format, as specified in the CONTENIDO backend

integer FORMAT_LOCALE_TIMEONLY 4
#

The locale format, as specified in the CONTENIDO backend

The locale format, as specified in the CONTENIDO backend

integer FORMAT_LOCALE_DATEONLY 5
#

The locale format, as specified in the CONTENIDO backend

The locale format, as specified in the CONTENIDO backend

integer FORMAT_MYSQL 6
#

The MySQL Timestamp is CCYYMMDDHHmmSS

The MySQL Timestamp is CCYYMMDDHHmmSS

integer FORMAT_CUSTOM 99
#

Custom format

Custom format

integer SUNDAY 0
#

Sunday

Sunday

integer MONDAY 1
#

Monday

Monday

integer TUESDAY 2
#

Tuesday

Tuesday

integer WEDNESDAY 3
#

Wednesday

Wednesday

integer THURSDAY 4
#

Thursday

Thursday

integer FRIDAY 5
#

Friday

Friday

integer SATURDAY 6
#

Saturday

Saturday

Properties summary
protected mixed $_iFirstDayOfWeek
#
Properties inherited from cDatatype
$_mDisplayedValue, $_mValue
CMS CONTENIDO 4.9.0 API documentation generated by ApiGen 2.8.0