Overview

Namespaces

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

Classes

  • DefaultValue
  • RequiredFields
  • ValidFields
  • Overview
  • Namespace
  • Class

Class DefaultValue

Adds a default value to a data set at create time

DSchoenbauer\Orm\Events\AbstractEvent implements DSchoenbauer\Orm\VisitorInterface
Extended by DSchoenbauer\Orm\Events\Validate\AbstractValidate
Extended by DSchoenbauer\Orm\Events\Validate\Schema\DefaultValue
Namespace: DSchoenbauer\Orm\Events\Validate\Schema
Author: David Schoenbauer
Located at Orm/Events/Validate/Schema/DefaultValue.php
Methods summary
public array
# getFields( DSchoenbauer\Orm\Entity\HasDefaultValuesInterface $entity )

provides an associative array that has a key of the field and a value

provides an associative array that has a key of the field and a value

Parameters

$entity

Returns

array

Since

v1.0.0
public string
# getTypeInterface( )

Returns

string

Inheritdoc

public boolean
# validate( array $data, array $fields )

Parameters

$data
$fields

Returns

boolean
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