VuFind API Documentation

RenderArray extends AbstractHelper
in package

View helper to render a portion of an array.

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

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

link

Wiki

Table of Contents

__invoke()  : string
Render a portion of an array.

Methods

__invoke()

Render a portion of an array.

public __invoke(string $tpl, array<string|int, mixed> $arr, array<string|int, mixed> $rows) : string
Parameters
$tpl : string

A template for displaying each row. This should include %%LABEL%% and %%VALUE%% placeholders

$arr : array<string|int, mixed>

An associative array of possible values to display

$rows : array<string|int, mixed>

A label => profile key associative array specifying which rows of $arr to display

Return values
string

Search results