Class ActiveRecord_ProxyMethod

Description

ActiveRecord_ProxyMethod encapsulates a proxied method for an ActiveRecord object. See ActiveRecord_Base::add_method_proxy() for more information.

Located in /activerecord/lib/ActiveRecord/ProxyMethod.php (line 11)

ActiveRecord_Proxy
   |
   --ActiveRecord_ProxyMethod
Variable Summary
Method Summary
 ActiveRecord_ProxyMethod __construct (string $name, callback $callback, [ $metaInf = null])
 mixed invoke (ActiveRecord_Base $record,  &$attributes,  &$cached_attributes, array $args, array $attributes, array $cached_attributes)
 string name ()
Variables
mixed $callback (line 13)
  • access: protected
mixed $maximumArgumentCount (line 15)
  • access: protected
mixed $name (line 12)
  • access: protected
mixed $requiredArgumentCount (line 14)
  • access: protected

Inherited Variables

Inherited from ActiveRecord_Proxy

ActiveRecord_Proxy::$attributes
ActiveRecord_Proxy::$cached_attributes
ActiveRecord_Proxy::$metaInf
ActiveRecord_Proxy::$record
Methods
Constructor __construct (line 23)

Constructor

  • access: public
ActiveRecord_ProxyMethod __construct (string $name, callback $callback, [ $metaInf = null])
  • string $name: The name to masquerade as
  • callback $callback: The callback to invoke
  • $metaInf
invoke (line 72)

Invoke the proxy

  • return: The return value from the call
  • access: public
mixed invoke (ActiveRecord_Base $record,  &$attributes,  &$cached_attributes, array $args, array $attributes, array $cached_attributes)
  • ActiveRecord_Base $record: The object the method is being invoked on
  • array $attributes: Attribute set of the object
  • array $cached_attributes: Cached attribute set of the object
  • array $args: The arguments to pass
  • &$attributes
  • &$cached_attributes
maximum_parameter_count (line 61)

Return the maximum number of arguments accepted

  • access: public
int maximum_parameter_count ()
name (line 49)

Return the name of this proxy

  • access: public
string name ()
required_parameter_count (line 55)

Return the number of arguments required by the method

  • access: public
int required_parameter_count ()

Inherited Methods

Inherited From ActiveRecord_Proxy

 ActiveRecord_Proxy::add_method_proxy()
 ActiveRecord_Proxy::add_validation()
 ActiveRecord_Proxy::delete_cached_attribute()
 ActiveRecord_Proxy::get_meta_info()
 ActiveRecord_Proxy::has_cached_attribute()
 ActiveRecord_Proxy::initialize()
 ActiveRecord_Proxy::read_attribute()
 ActiveRecord_Proxy::read_attribute_before_type_cast()
 ActiveRecord_Proxy::read_cached_attribute()
 ActiveRecord_Proxy::write_attribute()
 ActiveRecord_Proxy::write_cached_attribute()

Documentation generated on Wed, 25 Apr 2012 09:46:44 -0700 by phpDocumentor 1.4.3