wCMF  3.6
 All Classes Namespaces Files Functions Variables Groups Pages
MySQLDateConverter Class Reference
+ Inheritance diagram for MySQLDateConverter:

Public Member Functions

 convertStorageToApplication ($data, $type, $name)
 
 convertApplicationToStorage ($data, $type, $name)
 
 de_deToEnglish ($date, $type)
 
 en_enToEnglish ($date, $type)
 
 storageTo_de_de ($date, $type)
 
 storageTo_en_en ($date, $type)
 
- Public Member Functions inherited from DataConverter
 convertStorageToApplication ($data, $type, $name)
 
 convertApplicationToStorage ($data, $type, $name)
 

Detailed Description

MySQLDateConverter converts MySQL dates to a date localized to the users or application settings.

wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH

Licensed under the terms of any of the following licenses at your choice:

See the license.txt file distributed with this work for additional information.

Id:
class.MySQLDateConverter.php 1462 2014-02-04 23:52:27Z iherwig
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 30 of file class.MySQLDateConverter.php.

Member Function Documentation

MySQLDateConverter::convertStorageToApplication (   $data,
  $type,
  $name 
)
MySQLDateConverter::convertApplicationToStorage (   $data,
  $type,
  $name 
)
See Also
DataConverter::convertApplicationToStorage() This method uses methods named localeToEnglish (e.g. de_deToEnglish) to convert a localized date/time string back to english format. Localization was done using strftime("%x %X", time) resp. strftime("%x", time). To support a special locale the appropriate method must be implemented.

Definition at line 63 of file class.MySQLDateConverter.php.

MySQLDateConverter::de_deToEnglish (   $date,
  $type 
)

Convert a german date/time string to english format

Parameters
dateThe localized date/time
typeOne of these: date or datetime

Definition at line 93 of file class.MySQLDateConverter.php.

MySQLDateConverter::en_enToEnglish (   $date,
  $type 
)

Convert a english date/time string to english format

Parameters
dateThe localized date/time
typeOne of these: date or datetime

Definition at line 119 of file class.MySQLDateConverter.php.

MySQLDateConverter::storageTo_de_de (   $date,
  $type 
)

Convert a storage date format to german date/time string

Parameters
dateThe date/time in storage format
typeOne of these: date or datetime

Definition at line 128 of file class.MySQLDateConverter.php.

MySQLDateConverter::storageTo_en_en (   $date,
  $type 
)

Convert a storage date format to english date/time string

Parameters
dateThe date/time in storage format
typeOne of these: date or datetime

Definition at line 142 of file class.MySQLDateConverter.php.


The documentation for this class was generated from the following file: