Class Xyster_Orm_Binder

Description

A binder for entities

  • copyright: Copyright (c) 2007-2008 Irrational Logic (http://irrationallogic.net)
  • license: New BSD License

Located in /Orm/Binder.php (line 32)

Xyster_Data_Binder
   |
   --Xyster_Orm_Binder
Variable Summary
Method Summary
Xyster_Orm_Binder __construct (Xyster_Orm_Manager $manager, Xyster_Orm_Entity $entity, [boolean $allowPrimary = false])
void bind ( $values)
boolean isAllowed (string $field)
Variables
static mixed $_ormsetters = array() (line 46)
  • access: protected
Xyster_Orm_Manager $_manager (line 37)
  • access: protected
mixed $_primary = false (line 44)
  • access: protected
Xyster_Orm_Entity_Type $_type (line 42)
  • access: protected

Inherited Variables

Inherited from Xyster_Data_Binder

Xyster_Data_Binder::$_allowed
Xyster_Data_Binder::$_defaultSetter
Xyster_Data_Binder::$_disallowed
Xyster_Data_Binder::$_setters
Xyster_Data_Binder::$_target
Methods
Constructor __construct (line 55)

Creates a new binder for an entity

  • access: public
Xyster_Orm_Binder __construct (Xyster_Orm_Manager $manager, Xyster_Orm_Entity $entity, [boolean $allowPrimary = false])

Redefinition of:
Xyster_Data_Binder::__construct()
Creates a new binder
bind (line 69)

Bind the values to the target

  • access: public
void bind ( $values)
  • array $values

Redefinition of:
Xyster_Data_Binder::bind()
Binds the values in the array to the target
isAllowed (line 103)

Tests if a field is allowed

  • access: public
boolean isAllowed (string $field)
  • string $field

Redefinition of:
Xyster_Data_Binder::isAllowed()
Tests if a field is allowed
_getEntitySetter (line 115)

Gets the setter for an entity type

  • access: protected

Inherited Methods

Inherited From Xyster_Data_Binder

Xyster_Data_Binder::__construct()
Xyster_Data_Binder::addSetter()
Xyster_Data_Binder::bind()
Xyster_Data_Binder::getAllowedFields()
Xyster_Data_Binder::getDisallowedFields()
Xyster_Data_Binder::getTarget()
Xyster_Data_Binder::isAllowed()
Xyster_Data_Binder::setAllowedFields()
Xyster_Data_Binder::setDisallowedFields()
Xyster_Data_Binder::_getSetter()

Documentation generated on Mon, 19 May 2008 17:07:01 -0400 by phpDocumentor 1.4.2