Overview

Namespaces

  • DSchoenbauer
    • Orm
      • Builder
      • Entity
      • Enum
      • Events
        • Persistence
        • Validate
          • DataType
          • Schema
      • Exception
      • Framework

Classes

  • AbstractDataType
  • DataTypeBoolean
  • DataTypeDate
  • DataTypeNumber
  • DataTypeString
  • Overview
  • Namespace
  • Class

Class DataTypeDate

Validates date fields are dates

DSchoenbauer\Orm\Events\AbstractEvent implements DSchoenbauer\Orm\VisitorInterface
Extended by DSchoenbauer\Orm\Events\Validate\AbstractValidate
Extended by DSchoenbauer\Orm\Events\Validate\DataType\AbstractDataType
Extended by DSchoenbauer\Orm\Events\Validate\DataType\DataTypeDate
Namespace: DSchoenbauer\Orm\Events\Validate\DataType
Author: David Schoenbauer
Located at Orm/Events/Validate/DataType/DataTypeDate.php
Methods summary
public array
# getFields( mixed $entity )

returns the fields affected by the entity interface

returns the fields affected by the entity interface

Parameters

$entity
an entity object implements the getTypeInterface

Returns

array
an array of fields that are relevant to the interface

Since

v1.0.0
public string
# getTypeInterface( )

full name space of an interface that defines a given field type

full name space of an interface that defines a given field type

Returns

string

Since

v1.0.0
public boolean
# validateValue( mixed $value, string $field = null )

Validates that the value is of the proper type

Validates that the value is of the proper type

Parameters

$value
value to DataType
$field
field name

Returns

boolean

Since

v1.0.0
public string
# getDefaultDateTimeFormat( )

provides a default Date Time String

provides a default Date Time String

Returns

string

Since

v1.0.0
public
# setDefaultDateTimeFormat( string $defaultDateTimeFormat )

Parameters

$defaultDateTimeFormat
a format used to translate to a date

Returns


$this

Since

v1.0.0
Methods inherited from DSchoenbauer\Orm\Events\Validate\DataType\AbstractDataType
validate()
Methods inherited from DSchoenbauer\Orm\Events\Validate\AbstractValidate
getModel(), getParams(), onExecute(), preExecuteCheck(), setModel(), setParams()
Methods inherited from DSchoenbauer\Orm\Events\AbstractEvent
__construct(), getEvents(), setEvents(), visitModel()
Properties inherited from DSchoenbauer\Orm\Events\Validate\AbstractValidate
$model, $params
API documentation generated by ApiGen