Class Ismo_Core_Loaders_Interceptor_InterceptorConfiguration

Description

One interceptor's configuration.

Located in /Loaders/Interceptor.php (line 32)


	
			
Variable Summary
boolean $_allMethods
boolean $_allStates
object $_interceptor
array $_methods
array $_states
Method Summary
Ismo_Core_Loaders_Interceptor_InterceptorConfiguration Ismo_Core_Loaders_Interceptor_InterceptorConfiguration (array $states, array $methods, object &$interceptor)
boolean applyToState (string $stateName, string $methodName)
Variables
boolean $_allMethods = false (line 62)

Apply to all methods or only a selected amount of methods indicator.

This indicator is used for performance reasons to avoid doing an array search when not necessary.

  • access: private
boolean $_allStates = false (line 43)

Apply to all states or only a selected amount of states indicator.

This indicator is used for performance reasons to avoid doing an array search when not necessary.

  • access: private
object $_interceptor (line 78)

The interceptor instance which will be applied.

  • access: private
array $_methods (line 70)

The methods to apply this interceptor to.

  • access: private
array $_states (line 51)

The states to apply this interceptor to.

  • access: private
Methods
Constructor Ismo_Core_Loaders_Interceptor_InterceptorConfiguration (line 88)

The constructor.

  • access: public
Ismo_Core_Loaders_Interceptor_InterceptorConfiguration Ismo_Core_Loaders_Interceptor_InterceptorConfiguration (array $states, array $methods, object &$interceptor)
  • array $states: the states to apply this interceptor to
  • array $methods: the methods to apply this interceptor to
  • object $interceptor: the interceptor instance to apply
applyToState (line 118)

Determines if this inteceptor should be applied to the given state-method combination.

  • return:
    1. true
    if the interceptor should be applied to this state,
    1. false
    otherwise
  • access: public
  • todo: add support for wildcards, i.e. 'get*' as method name etc.
boolean applyToState (string $stateName, string $methodName)
  • string $stateName: the state to check against
  • string $methodName: the method to check against

Documentation generated on Mon, 14 Jun 2004 11:59:27 +0200 by phpDocumentor 1.3.0RC3