ThumbBase::__call PHP Method

__call() public method

This is also where a fair amount of plugins magaic happens. This magic method is called whenever an "undefined" class method is called in code, and we use that to call an imported function. You should NEVER EVER EVER invoke this function manually. The universe will implode if you do... seriously ;)
public __call ( string $method, array $args )
$method string
$args array
    public function __call($method, $args)
    {
        if (array_key_exists($method, $this->importedFunctions)) {
            $args[] = $this;
            return call_user_func_array(array($this->importedFunctions[$method], $method), $args);
        }
        throw new BadMethodCallException('Call to undefined method/class function: ' . $method);
    }