VuFind API Documentation

JsConfigs extends AbstractHelper
in package

JsConfigs helper for passing configs to Javascript

Tags
category

VuFind

author

Thomas Wagener wagener@hebis.uni-frankfurt.de

license

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

link

Wiki

Table of Contents

$config  : array<string|int, mixed>
Config
add()  : void
Add config.
getJSON()  : string
Generate JSON from the internal array.

Properties

$config

Config

protected array<string|int, mixed> $config = []

Methods

add()

Add config.

public add(string $key, mixed $value) : void
Parameters
$key : string

Config key

$value : mixed

Config value

Return values
void

getJSON()

Generate JSON from the internal array.

public getJSON() : string
Return values
string

Search results