public function registerPlugin($type, $tag, $callback, $cacheable = true, $cache_attr = null)
    {
        $this->smarty->registerPlugin($type, $tag, $callback, $cacheable, $cache_attr);
    }
public function registerPlugin($type, $tag, $callback, $cacheable = true, $cache_attr = null)
    {
        $this->smarty->registerPlugin($type, $tag, $callback, $cacheable, $cache_attr);
    }
public function registerPlugin ( $ type , $ tag , $ callback , $ cacheable = true , $ cache_attr = null ) { $ this -> smarty -> registerPlugin ( $ type , $ tag , $ callback , $ cacheable , $ cache_attr ) ; }
Proxy method to register a plugin to Smarty

@param  string $type plugin type
@param  string $tag name of template tag
@param  callable $callback PHP callback to register
@param  boolean $cacheable if true (default) this function is cachable
@param  array $cache_attr caching attributes if any

@return self

@throws SmartyException when the plugin tag is invalid
Proxy method to register a plugin to Smarty