VuFind API Documentation

TemplatePath extends AbstractHelper
in package

Helper to get path to a template from another theme (for including)

Tags
category

VuFind

author

Chris Hallberg challber@villanova.edu

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Wiki

Table of Contents

$pathPost  : string
Absolute path after the theme name
$pathPre  : string
Absolute path up to the theme name
$templatePathStack  : TemplatePathStack
Template path stack
__construct()  : mixed
Constructor
__invoke()  : string
Returns an template path according the configured theme

Properties

$pathPost

Absolute path after the theme name

protected string $pathPost

$pathPre

Absolute path up to the theme name

protected string $pathPre

$templatePathStack

Template path stack

protected TemplatePathStack $templatePathStack

Methods

__construct()

Constructor

public __construct(TemplatePathStack $templateStack) : mixed
Parameters
$templateStack : TemplatePathStack

Inheritance stack of template paths

Return values
mixed

__invoke()

Returns an template path according the configured theme

public __invoke(string $template, string $targetTheme) : string
Parameters
$template : string

template name like 'footer.phtml'

$targetTheme : string

template to pull the template from

Tags
throws
Exception

if no file exists at path

Return values
string

path, null if image not found

Search results