public function getPluginFromDefaultHandler($tag, $plugin_type)
    {
        $callback = null;
        $script = null;
        $cacheable = true;
        $result = call_user_func_array(
            $this->smarty->default_plugin_handler_func, array($tag, $plugin_type, $this->template, &$callback, &$script, &$cacheable)
        );
        if ($result) {
            $this->tag_nocache = $this->tag_nocache || !$cacheable;
            if ($script !== null) {
                if (is_file($script)) {
                    if ($this->template->caching && ($this->nocache || $this->tag_nocache)) {
                        $this->template->required_plugins['nocache'][$tag][$plugin_type]['file'] = $script;
                        $this->template->required_plugins['nocache'][$tag][$plugin_type]['function'] = $callback;
                    } else {
                        $this->template->required_plugins['compiled'][$tag][$plugin_type]['file'] = $script;
                        $this->template->required_plugins['compiled'][$tag][$plugin_type]['function'] = $callback;
                    }
                    include_once $script;
                } else {
                    $this->trigger_template_error("Default plugin handler: Returned script file \"{$script}\" for \"{$tag}\" not found");
                }
            }
            if (!is_string($callback) && !(is_array($callback) && is_string($callback[0]) && is_string($callback[1]))) {
                $this->trigger_template_error("Default plugin handler: Returned callback for \"{$tag}\" must be a static function name or array of class and function name");
            }
            if (is_callable($callback)) {
                $this->default_handler_plugins[$plugin_type][$tag] = array($callback, true, array());

                return true;
            } else {
                $this->trigger_template_error("Default plugin handler: Returned callback for \"{$tag}\" not callable");
            }
        }

        return false;
    }
public function getPluginFromDefaultHandler($tag, $plugin_type)
    {
        $callback = null;
        $script = null;
        $cacheable = true;
        $result = call_user_func_array(
            $this->smarty->default_plugin_handler_func, array($tag, $plugin_type, $this->template, &$callback, &$script, &$cacheable)
        );
        if ($result) {
            $this->tag_nocache = $this->tag_nocache || !$cacheable;
            if ($script !== null) {
                if (is_file($script)) {
                    if ($this->template->caching && ($this->nocache || $this->tag_nocache)) {
                        $this->template->required_plugins['nocache'][$tag][$plugin_type]['file'] = $script;
                        $this->template->required_plugins['nocache'][$tag][$plugin_type]['function'] = $callback;
                    } else {
                        $this->template->required_plugins['compiled'][$tag][$plugin_type]['file'] = $script;
                        $this->template->required_plugins['compiled'][$tag][$plugin_type]['function'] = $callback;
                    }
                    include_once $script;
                } else {
                    $this->trigger_template_error("Default plugin handler: Returned script file \"{$script}\" for \"{$tag}\" not found");
                }
            }
            if (!is_string($callback) && !(is_array($callback) && is_string($callback[0]) && is_string($callback[1]))) {
                $this->trigger_template_error("Default plugin handler: Returned callback for \"{$tag}\" must be a static function name or array of class and function name");
            }
            if (is_callable($callback)) {
                $this->default_handler_plugins[$plugin_type][$tag] = array($callback, true, array());

                return true;
            } else {
                $this->trigger_template_error("Default plugin handler: Returned callback for \"{$tag}\" not callable");
            }
        }

        return false;
    }
public function getPluginFromDefaultHandler ( $ tag , $ plugin_type ) { $ callback = null ; $ script = null ; $ cacheable = true ; $ result = call_user_func_array ( $ this -> smarty -> default_plugin_handler_func , array ( $ tag , $ plugin_type , $ this -> template , & $ callback , & $ script , & $ cacheable ) ) ; if ( $ result ) { $ this -> tag_nocache = $ this -> tag_nocache || ! $ cacheable ; if ( $ script !== null ) { if ( is_file ( $ script ) ) { if ( $ this -> template -> caching && ( $ this -> nocache || $ this -> tag_nocache ) ) { $ this -> template -> required_plugins [ 'nocache' ] [ $ tag ] [ $ plugin_type ] [ 'file' ] = $ script ; $ this -> template -> required_plugins [ 'nocache' ] [ $ tag ] [ $ plugin_type ] [ 'function' ] = $ callback ; } else { $ this -> template -> required_plugins [ 'compiled' ] [ $ tag ] [ $ plugin_type ] [ 'file' ] = $ script ; $ this -> template -> required_plugins [ 'compiled' ] [ $ tag ] [ $ plugin_type ] [ 'function' ] = $ callback ; } include_once $ script ; } else { $ this -> trigger_template_error ( "Default plugin handler: Returned script file \"{$script}\" for \"{$tag}\" not found" ) ; } } if ( ! is_string ( $ callback ) && ! ( is_array ( $ callback ) && is_string ( $ callback [ 0 ] ) && is_string ( $ callback [ 1 ] ) ) ) { $ this -> trigger_template_error ( "Default plugin handler: Returned callback for \"{$tag}\" must be a static function name or array of class and function name" ) ; } if ( is_callable ( $ callback ) ) { $ this -> default_handler_plugins [ $ plugin_type ] [ $ tag ] = array ( $ callback , true , array ( ) ) ; return true ; } else { $ this -> trigger_template_error ( "Default plugin handler: Returned callback for \"{$tag}\" not callable" ) ; } } return false ; }
Check for plugins by default plugin handler

@param  string $tag         name of tag
@param  string $plugin_type type of plugin
@return boolean true if found
Check for plugins by default plugin handler