Class CallWrapper

Description

This class creates proxy-objects, that wrap other objects, and log:

  • The methods that were called
  • The parameters of the calls
  • The return values.

This is the core of the logging / debugging and regression testing. This class extends the Common class.

Located in /lib/CallWrapper.php (line 28)

Common
   |
   --CallWrapper
Variable Summary
 mixed $object
Method Summary
 CallWrapper __construct ( $object)
 mixed __call (mixed $methodName, mixed $parameters)
Variables
mixed $object (line 29)
  • access: protected

Inherited Variables

Inherited from Common

Common::$conf
Common::$db_conn
Common::$logger
Methods
Constructor __construct (line 34)

We save a reference to the real object in the constructor

  • access: public
CallWrapper __construct ( $object)
  • $object

Redefinition of:
Common::__construct()
Get the current instance of our Settings and Logger classes
__call (line 45)

Here we log the return value of each method that is called in policy.inc.php

  • return: The return value of the called function
  • access: public
mixed __call (mixed $methodName, mixed $parameters)
  • mixed $methodName: The function to call and log
  • mixed $parameters: Parameters passed to the called function

Inherited Methods

Inherited From Common

 Common::__construct()
 Common::getConnection()
 Common::htmlescape()
 Common::log2db()
 Common::real_escape_string1()
 Common::sqlescape()

Documentation generated on Mon, 13 Oct 2008 01:10:20 +0200 by phpDocumentor 1.4.0