Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
DateTime Class Reference

Transform a mysql date to a php DateTime. More...

+ Inheritance diagram for DateTime:

Static Public Member Functions

static transform ($value)
 Transforms model data to normalized data.
 
static reverse ($value)
 Reverse data transforming to model data.
 
static toView ($value)
 Transforms normalized data to view data.
 
static toForm ($value)
 Transforms normalized data to form data.
 

Detailed Description

Transform a mysql date to a php DateTime.

Ubiquity\contents\transformation\transformers$DateTime This class is part of Ubiquity

Author
jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
Version
1.0.0
Since
2.1.1

Definition at line 18 of file DateTime.php.

Member Function Documentation

◆ reverse()

static reverse (   $value)
static

Reverse data transforming to model data.

Parameters
mixed$value

Implements TransformerInterface.

Definition at line 25 of file DateTime.php.

◆ toForm()

static toForm (   $value)
static

Transforms normalized data to form data.

Parameters
string$value

Implements TransformerFormInterface.

Definition at line 36 of file DateTime.php.

◆ toView()

static toView (   $value)
static

Transforms normalized data to view data.

Parameters
string$value

Implements TransformerViewInterface.

Definition at line 32 of file DateTime.php.

◆ transform()

static transform (   $value)
static

Transforms model data to normalized data.

Parameters
mixed$value

Implements TransformerInterface.

Definition at line 20 of file DateTime.php.


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