PHP Класс eZ\Publish\Core\FieldType\Date\Value

Наследование: extends eZ\Publish\Core\FieldType\Value
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$date DateTime Date content.
$stringFormat string Date format to be used by {@link __toString()}.

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный метод

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

__toString() публичный метод

См. также: eZ\Publish\Core\FieldType\Value
public __toString ( )

fromString() публичный статический метод

Creates a Value from the given $dateString.
public static fromString ( string $dateString ) : Value
$dateString string
Результат Value

fromTimestamp() публичный статический метод

Creates a Value from the given $timestamp.
public static fromTimestamp ( integer $timestamp ) : Value
$timestamp integer
Результат Value

Описание свойств

$date публичное свойство

Date content.
public DateTime $date
Результат DateTime

$stringFormat публичное свойство

Date format to be used by {@link __toString()}.
public string $stringFormat
Результат string