public function addTemplate($name = false)
    {
        // The template is on ignore list, don't add it
        if (in_array($name, $this->ignoreTemplates)) {
            return false;
        }

        $name .= '.xsl';

        foreach ($this->paths as $path) {
            if (is_readable($path.DIRECTORY_SEPARATOR.$name)) {
                $this->xsl->includeXSL($path.DIRECTORY_SEPARATOR.$name);

                return;
            }
        }
    }
public function addTemplate($name = false)
    {
        // The template is on ignore list, don't add it
        if (in_array($name, $this->ignoreTemplates)) {
            return false;
        }

        $name .= '.xsl';

        foreach ($this->paths as $path) {
            if (is_readable($path.DIRECTORY_SEPARATOR.$name)) {
                $this->xsl->includeXSL($path.DIRECTORY_SEPARATOR.$name);

                return;
            }
        }
    }
public function addTemplate ( $ name = false ) { // The template is on ignore list, don't add it if ( in_array ( $ name , $ this -> ignoreTemplates ) ) { return false ; } $ name .= '.xsl' ; foreach ( $ this -> paths as $ path ) { if ( is_readable ( $ path . DIRECTORY_SEPARATOR . $ name ) ) { $ this -> xsl -> includeXSL ( $ path . DIRECTORY_SEPARATOR . $ name ) ; return ; } } }
Add XSL-file to parser.

File is first looked from extensionspath/modules directory, then module
directory. If module name was not specified or $module was set to true,
method also looks up the file in theme directories.


@param string $name   XSL-filename without .xsl suffix
@param mixed  $module False to search XSL-file from current module and
theme directories, true to search just module directory or
name of the module

@return bool True if XSL file was included, otherwise false
Add XSL - file to parser .