PHP Class eZ\Publish\Core\FieldType\DateAndTime\Value

Inheritance: extends eZ\Publish\Core\FieldType\Value
Afficher le fichier Open project: ezsystems/ezpublish-kernel Class Usage Examples

Méthodes publiques

Свойство Type Description
$stringFormat string Date format to be used by {@link __toString()}.
$value DateTime Date content.

Méthodes publiques

Méthode Description
__construct ( DateTime $dateTime = null ) Construct a new Value object and initialize with $dateTime.
__toString ( )
fromString ( string $dateString ) : Value Creates a Value from the given $dateString.
fromTimestamp ( integer $timestamp ) : Value Creates a Value from the given $timestamp.

Method Details

__construct() public méthode

Construct a new Value object and initialize with $dateTime.
public __construct ( DateTime $dateTime = null )
$dateTime DateTime Date/Time as a DateTime object

__toString() public méthode

See also: eZ\Publish\Core\FieldType\Value
public __toString ( )

fromString() public static méthode

Creates a Value from the given $dateString.
public static fromString ( string $dateString ) : Value
$dateString string
Résultat Value

fromTimestamp() public static méthode

Creates a Value from the given $timestamp.
public static fromTimestamp ( integer $timestamp ) : Value
$timestamp integer
Résultat Value

Property Details

$stringFormat public_oe property

Date format to be used by {@link __toString()}.
public string $stringFormat
Résultat string

$value public_oe property

Date content.
public DateTime $value
Résultat DateTime