Blame view

framework/control/injector/BeforeCallAspect.php 792 Bytes
0084d336   Administrator   Importers CRUD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  <?php
  
  /**
   * A BeforeCallAspect is run before a method is executed.
   *
   * This is a declared interface, but isn't actually required
   * as PHP doesn't really care about types... 
   * 
   * @package framework
   * @subpackage injector
   */
  interface BeforeCallAspect {
  	
  	/**
  	 * Call this aspect before a method is executed
  	 * 
  	 * @param object $proxied
  	 *				The object having the method called upon it. 
  	 * @param string $method
  	 *				The name of the method being called
  	 * @param string $args
  	 *				The arguments that were passed to the method call
  	 * @param mixed $alternateReturn
  	 *				An alternative return value that should be passed 
  	 *				to the caller. Only has effect of beforeCall returns false
  	 */
  	public function beforeCall($proxied, $method, $args, &$alternateReturn);
  }