Documentation

SiteSettings
in package

Table of Contents

Methods

getList()  : array<string|int, mixed>
Return a list of settings matching the given key
getListAsKeyValues()  : array<string|int, mixed>
Fetch site settings as key value pairs
getSingle()  : string|null
Return a single setting matching the given key first listed by record order

Methods

getList()

Return a list of settings matching the given key

public static getList(string $key) : array<string|int, mixed>
Parameters
$key : string

Setting to find

Return values
array<string|int, mixed> —

List of matching values

getListAsKeyValues()

Fetch site settings as key value pairs

public static getListAsKeyValues() : array<string|int, mixed>
Return values
array<string|int, mixed> —

[key => value] pairs

getSingle()

Return a single setting matching the given key first listed by record order

public static getSingle(string $key) : string|null
Parameters
$key : string

Setting to find

Return values
string|null —

value of setting or null if no match

On this page

Search results