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

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

Méthodes publiques

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

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 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

$date public_oe property

Date content.
public DateTime $date
Résultat DateTime

$stringFormat public_oe property

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