Class Xyster_Container_Behavior_PropertyApplicator

Description

Behavior to apply properties

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

Located in /Container/Behavior/PropertyApplicator.php (line 28)

Xyster_Container_Behavior_Abstract
   |
   --Xyster_Container_Behavior_PropertyApplicator
Method Summary
string getDescriptor ()
object the getInstance (Xyster_Container_Interface $container)
void setProperties ( $properties)
void setProperty (string $key, string $value)
string _getPropertyName ( $method)
object the _getSetterParameter (string $propertyName, mixed $propertyValue, mixed $componentInstance, Xyster_Container_Interface $container)
array _getSetters ( $type, ReflectionClass $class)
boolean _isSetter ( $method)
Variables
Methods
getDescriptor (line 111)

Gets the descriptor for this adapter

  • access: public
string getDescriptor ()
getInstance (line 46)

Get a component instance and set given property values

  • return: component instance with any properties set
  • access: public
object the getInstance (Xyster_Container_Interface $container)

Redefinition of:
Xyster_Container_Behavior_Abstract::getInstance()
Retrieve the component instance
setProperties (line 86)

Sets the property values

  • access: public
void setProperties ( $properties)
  • Xyster_Collection_Map_String $properties
setProperty (line 97)

Sets a property

  • access: public
void setProperty (string $key, string $value)
  • string $key
  • string $value
_getPropertyName (line 122)

Gets the property name for a method

  • access: protected
string _getPropertyName ( $method)
  • ReflectionMethod $method
_getSetterParameter (line 143)

Converts and validates the given property value to an appropriate object for calling the bean's setter

  • return: final converted object that can be used in the setter.
  • access: protected
object the _getSetterParameter (string $propertyName, mixed $propertyValue, mixed $componentInstance, Xyster_Container_Interface $container)
  • string $propertyName: the property name on the component
  • mixed $propertyValue: the property value that we've been given
  • mixed $componentInstance: the component that we're looking to provide the setter to
  • Xyster_Container_Interface $container
_getSetters (line 183)

Gets the setters for a class

  • return: an array full of ReflectionMethod objects
  • access: protected
array _getSetters ( $type, ReflectionClass $class)
  • ReflectionClass $class
  • Xyster_Type $type
_isSetter (line 205)

Gets whether a method is a setter

  • access: protected
boolean _isSetter ( $method)
  • ReflectionMethod $method

Inherited Methods

Inherited From Xyster_Container_Behavior_Abstract

Xyster_Container_Behavior_Abstract::__construct()
Xyster_Container_Behavior_Abstract::accept()
Xyster_Container_Behavior_Abstract::changeMonitor()
Xyster_Container_Behavior_Abstract::currentMonitor()
Xyster_Container_Behavior_Abstract::getDelegate()
Xyster_Container_Behavior_Abstract::getImplementation()
Xyster_Container_Behavior_Abstract::getInstance()
Xyster_Container_Behavior_Abstract::getKey()
Xyster_Container_Behavior_Abstract::verify()
Xyster_Container_Behavior_Abstract::__toString()

Documentation generated on Mon, 19 May 2008 17:08:32 -0400 by phpDocumentor 1.4.2