Horde_Core_Block::_call PHP Method

_call() protected method

Calls the application driver in the proper context.
protected _call ( string $name, mixed $default, mixed $args = null ) : mixed
$name string string
$default mixed
$args mixed
return mixed
    protected function _call($name, $default, $args = null)
    {
        try {
            $pushed = $GLOBALS['registry']->pushApp($this->getApp(), array('check_perms' => true, 'logintasks' => false));
        } catch (Horde_Exception $e) {
            return $default;
        }
        try {
            $ret = is_null($args) ? $this->{$name}() : call_user_func(array($this, $name), $args);
        } catch (Horde_Exception $e) {
            $ret = $default;
        }
        if ($pushed) {
            $GLOBALS['registry']->popApp();
        }
        return $ret;
    }