Overview

Namespaces

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

Classes

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

Class RequiredFields

Ensures required fields are present

DSchoenbauer\Orm\Events\AbstractEvent implements DSchoenbauer\Orm\VisitorInterface
Extended by DSchoenbauer\Orm\Events\Validate\AbstractValidate
Extended by DSchoenbauer\Orm\Events\Validate\Schema\RequiredFields
Namespace: DSchoenbauer\Orm\Events\Validate\Schema
Author: David Schoenbauer
Located at Orm/Events/Validate/Schema/RequiredFields.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
# validate( array $data, array $fields )

validates data against list of fields

validates data against list of fields

Parameters

$data
associative array of data to be validated
$fields
fields that are deemed a given type

Returns

boolean

Since

v1.0.0
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