Documentation

ElementDate extends ElementString
in package

Class ElementDate

Table of Contents

Properties

$document  : Document|null
$format  : string
$formats  : array<int, string>
$value  : DateTime

Methods

__construct()  : mixed
__toString()  : string
contains()  : bool
equals()  : bool
getContent()  : mixed
init()  : mixed
parse()  : bool|ElementDate
setFormat()  : mixed

Properties

$formats

protected static array<int, string> $formats = [4 => 'Y', 6 => 'Ym', 8 => 'Ymd', 10 => 'YmdH', 12 => 'YmdHi', 14 => 'YmdHis', 15 => 'YmdHise', 17 => 'YmdHisO', 18 => 'YmdHisO', 19 => 'YmdHisO']

Methods

__construct()

public __construct(mixed $value) : mixed
Parameters
$value : mixed

__toString()

public __toString() : string
Return values
string

contains()

public contains(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

equals()

public equals(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

getContent()

public getContent() : mixed

setFormat()

public setFormat(string $format) : mixed
Parameters
$format : string

        
On this page

Search results