VuFind API Documentation

ParentTemplate extends AbstractHelper
in package

Helper to get path to a parent template (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

$templatePathStack  : TemplatePathStack
Inheritance stack of template folder paths
__construct()  : mixed
Constructor
__invoke()  : string
Returns an template path according the configured theme

Properties

$templatePathStack

Inheritance stack of template folder paths

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 = null ]) : string
Parameters
$template : string

template name like 'footer.phtml'

$targetTheme : string = null

specific parent to inherit from

Tags
throws
Exception

if no file exists at path

Return values
string

path, null if image not found

Search results