PEAR Manual
Prev |  | Next

# PEAR_Autoloader::__call()

PEAR_Autoloader::__call() -- Overloaded object call handler

## Synopsis

    require_once 'PEAR/autoloader.php';

``mixed PEAR_Autoloader::__call` (string $method, string $args, mixed &$retval)`

## Description

Overloaded object call handler, called each time an undefined/aggregated method is invoked. This method repeats the call in the right aggregate object and passes on the return value.

## Parameter

string `$method`

  which method that was called

string `$args`

  An array of the parameters passed in the original call

mixed `&$retval`

## Return value

`mixed` - The return value from the aggregated method, or a PEAR_Error if the called method was unknown.

## Throws

Table 27-1. Possible PEAR_Error values

Error code | Error value | Meaning | Solution
--- | --- | --- | ---
| "" |  |

## Note

This function can not be called statically.

Prev | Home | Next
PEAR_Autoloader::removeAutoload() | Up | PEAR_Builder