Overview

Namespaces

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

Classes

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

Class ValidFields

Validates that only fields valid fields are allowed in the data model

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

provides a list of fields that this operation will affect

provides a list of fields that this operation will affect

Parameters

$entity
entity object that houses the fields

Returns

array

Since

v1.0.0
public string
# getTypeInterface( )

Interface that qualifies the entity as valid for this operation

Interface that qualifies the entity as valid for this operation

Returns

string

Since

v1.0.0
public boolean
# validate( array $data, array $fields )

removes any outside fields and saves that data to the model

removes any outside fields and saves that data to the model

Parameters

$data
$fields

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