Phergie_Plugin_Handler::__call PHP Method

__call() public method

Proxies method calls to all plugins containing the called method.
public __call ( string $name, array $args ) : void
$name string Name of the method called
$args array Arguments passed in the method call
return void
    public function __call($name, array $args)
    {
        if (!count($this->iteratorCollection)) {
            $this->getIterator();
        }
        foreach ($this->iteratorCollection as &$iterator) {
            foreach ($iterator as $plugin) {
                call_user_func_array(array($plugin, $name), $args);
            }
        }
        return true;
    }