com\setasign\SetaSite\PropertyContainer\Property

DateTime Class DateTime

File: /SetaSite/src/PropertyContainer/Property/DateTime.php

Class hierarchy

Implements

Summary

Constants

VALIDATOR_EMPTY

public const DateTime::VALIDATOR_EMPTY = 'empty'

VALIDATOR_END_DATETIME

public const DateTime::VALIDATOR_END_DATETIME = 'end_datetime'

VALIDATOR_START_DATETIME

public const DateTime::VALIDATOR_START_DATETIME = 'start_datetime'

Properties

$value

protected mixed AbstractProperty::$value

Static Methods

cleanupConfig()


Methods

__clone()

public AbstractProperty::__clone (
void
): void

__toString()

public DateTime::__toString (
void
): string

exportValue()

public DateTime::exportValue (
void
): mixed

Export the value, to use it in a Database

getDefaultValue()

public AbstractProperty::getDefaultValue (
void
): void

getValue()

public AbstractProperty::getValue (
void
): mixed

isNull()

public AbstractProperty::isNull (
void
): bool

Checks whether the value is null

isValid()

public DateTime::isValid (
array &$result = array ( )
): bool

Checks whether the value of the property is valid

Parameters
$result: array
 

parseValue()

protected DateTime::parseValue (
mixed $value
): mixed

Parses the value to the correct format

Parameters
$value: mixed
 

setValue()

public AbstractProperty::setValue (
mixed $value,
bool $ignoreEditable = false
): void

Sets the value

Strings that are empty will be null

Parameters
$value: mixed
 
$ignoreEditable: bool

Ignore editable property, only for internal use!