Class Xyster_Container_Visitor_MethodCalling

Description

A visitor implementation that calls methods on the components of a specified type

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

Located in /Container/Visitor/MethodCalling.php (line 32)

Xyster_Container_Visitor_Abstract
   |
   --Xyster_Container_Visitor_TraversalChecking
      |
      --Xyster_Container_Visitor_MethodCalling
Method Summary
Xyster_Container_Visitor_MethodCalling __construct ( $method, [ $arguments = array()], [boolean $visitInInstantiationOrder = true])
void traverse (mixed $node)
array _getArguments ()
ReflectionMethod _getMethod ()
void _invoke (object $target)
Methods
Constructor __construct (line 61)

Creates a MethodCalling visitor for a method with arguments

  • access: public
Xyster_Container_Visitor_MethodCalling __construct ( $method, [ $arguments = array()], [boolean $visitInInstantiationOrder = true])
  • ReflectionMethod $method: the method to invoke
  • array $arguments: the arguments for the method invocation
  • boolean $visitInInstantiationOrder: true if components are visited in instantiation order
traverse (line 76)

Entry point for the Visitor traversal

{@inherit}

  • access: public
void traverse (mixed $node)
  • mixed $node: the start node of the traversal

Redefinition of:
Xyster_Container_Visitor_Abstract::traverse()
Entry point for the Visitor traversal {@inherit}
visitContainer (line 102)

Visit a container that has to accept the visitor

  • access: public
void visitContainer (Xyster_Container_Interface $container)

Redefinition of:
Xyster_Container_Visitor_TraversalChecking::visitContainer()
Visit a container that has to accept the visitor
_getArguments (line 114)

Gets the arguments for the method

  • access: protected
array _getArguments ()
_getMethod (line 124)

Gets the method

  • access: protected
ReflectionMethod _getMethod ()
_invoke (line 134)

Invokes the method on the given object

  • access: protected
void _invoke (object $target)
  • object $target

Inherited Methods

Inherited From Xyster_Container_Visitor_TraversalChecking

Xyster_Container_Visitor_TraversalChecking::visitComponentAdapter()
Xyster_Container_Visitor_TraversalChecking::visitContainer()
Xyster_Container_Visitor_TraversalChecking::visitParameter()

Inherited From Xyster_Container_Visitor_Abstract

Xyster_Container_Visitor_Abstract::traverse()
Xyster_Container_Visitor_Abstract::_checkTraversal()

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