PHP Class Webiny\Component\Entity\Attribute\AbstractDateAttribute

Inheritance: extends AbstractAttribute
Datei anzeigen Open project: Webiny/Framework

Protected Properties

Property Type Description
$autoUpdate

Public Methods

Method Description
getDbValue ( )
getValue ( $params = [], $asDateTimeObject = false, $processCallbacks = true )
setAutoUpdate ( boolean $flag = true ) Set auto update on or off
If true, will update the attribute value with current date/datetime each time it's inserted into DB
setValue ( $value = null, $fromDb = false )

Protected Methods

Method Description
validate ( &$value ) Perform validation against given value

Private Methods

Method Description
setDefaultValueInternal ( ) Set default attribute value

Method Details

getDbValue() public method

public getDbValue ( )

getValue() public method

public getValue ( $params = [], $asDateTimeObject = false, $processCallbacks = true )

setAutoUpdate() public method

Set auto update on or off
If true, will update the attribute value with current date/datetime each time it's inserted into DB
public setAutoUpdate ( boolean $flag = true )
$flag boolean

setValue() public method

public setValue ( $value = null, $fromDb = false )

validate() protected method

Perform validation against given value
protected validate ( &$value )
$value

Property Details

$autoUpdate protected_oe property

protected $autoUpdate