Overview

Namespaces

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

Classes

  • CrudModel
  • Model

Interfaces

  • VisitorInterface
  • Overview
  • Namespace
  • Class

Class Model

An object that represents business logic and is available for general consumption

DSchoenbauer\Orm\Model uses Zend\EventManager\EventManagerAwareTrait (not available)

Direct known subclasses

DSchoenbauer\Orm\CrudModel
Namespace: DSchoenbauer\Orm
Author: David Schoenbauer
Located at Orm/Model.php
Methods summary
public
# __construct( DSchoenbauer\Orm\Entity\EntityInterface $entity )

Parameters

$entity

an entity object houses specific information about a given model

public DSchoenbauer\Orm\Entity\EntityInterface
# getEntity( )

provides the entity of the model

provides the entity of the model

Returns

DSchoenbauer\Orm\Entity\EntityInterface

Since

v1.0.0
public DSchoenbauer\Orm\Model
# setEntity( DSchoenbauer\Orm\Entity\EntityInterface $entity )

sets the entity of the model

sets the entity of the model

Parameters

$entity

Returns

DSchoenbauer\Orm\Model

Since

v1.0.0
public DSchoenbauer\Orm\Model
# accept( DSchoenbauer\Orm\VisitorInterface $visitor )

Allows the visitor pattern to expand the functionality of the object

Allows the visitor pattern to expand the functionality of the object

Parameters

$visitor

Returns

DSchoenbauer\Orm\Model

Since

v1.0.0
public integer
# getId( )

provides a unique identifier value for a given record

provides a unique identifier value for a given record

Returns

integer

Since

v1.0.0
public mixed
# getData( )

provides the current record

provides the current record

Returns

mixed

Since

v1.0.0
public DSchoenbauer\Orm\Model
# setId( integer $id )

sets a unique identifier value for a given record

sets a unique identifier value for a given record

Parameters

$id

Returns

DSchoenbauer\Orm\Model

Since

v1.0.0
public DSchoenbauer\Orm\Model
# setData( mixed $data )

sets the current record

sets the current record

Parameters

$data
current

Returns

DSchoenbauer\Orm\Model

Since

v1.0.0
public DSchoenbauer\Orm\Framework\AttributeCollection
# getAttributes( )

provides a collection of key value pairs that are specific to a given model

provides a collection of key value pairs that are specific to a given model

Returns

DSchoenbauer\Orm\Framework\AttributeCollection

Since

v1.0.0
public DSchoenbauer\Orm\Model
# setAttributes( DSchoenbauer\Orm\Framework\AttributeCollection $attributes )

sets a collection of key value pairs that are specific to a given model

sets a collection of key value pairs that are specific to a given model

Parameters

$attributes

Returns

DSchoenbauer\Orm\Model

Since

v1.0.0
API documentation generated by ApiGen