LimeSurvey API - Master branch

ApiConfig
in package

ApiConfig

Table of Contents

Properties

$config  : array<string|int, mixed>

Methods

__construct()  : mixed
ApiConfig
getConfig()  : array<string|int, mixed>
Get entire config array
getPath()  : array<string|int, mixed>|null
Get config by path
setConfig()  : void
Set entire config array
setPath()  : void
Set config by path
pathReducer()  : array<string|int, mixed>|null
Path Reducer

Properties

$config

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

Methods

__construct()

ApiConfig

public __construct([array<string|int, mixed> &$config = [] ]) : mixed
Parameters
$config : array<string|int, mixed> = []

getConfig()

Get entire config array

public & getConfig() : array<string|int, mixed>
Return values
array<string|int, mixed>

getPath()

Get config by path

public & getPath(string $path[, bool $createParents = false ]) : array<string|int, mixed>|null
Parameters
$path : string
$createParents : bool = false
Return values
array<string|int, mixed>|null

setConfig()

Set entire config array

public setConfig(array<string|int, mixed> &$config) : void
Parameters
$config : array<string|int, mixed>

setPath()

Set config by path

public setPath(string $path, mixed $value) : void
Parameters
$path : string
$value : mixed

pathReducer()

Path Reducer

private & pathReducer(array<string|int, mixed> $pathElements, array<string|int, mixed> &$initData[, bool $createParents = false ]) : array<string|int, mixed>|null
Parameters
$pathElements : array<string|int, mixed>
$initData : array<string|int, mixed>
$createParents : bool = false
Return values
array<string|int, mixed>|null

        
On this page

Search results