PHP 클래스 eZ\Publish\Core\FieldType\Date\Value

상속: extends eZ\Publish\Core\FieldType\Value
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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