UserFrosting API

Repository extends Repository

Repository Class.

Represents an extendable repository of key->value mappings.

Tags
author

Alexander Weissman (https://alexanderweissman.com)

Table of Contents

mergeItems() Recursively merge values (scalar or array) into this repository. self
getDefined() Get the specified configuration value, recursively removing all null values. mixed

Methods

mergeItems()

Recursively merge values (scalar or array) into this repository.

public mergeItems( $key : string|null , $items : mixed ) : self

If no key is specified, the items will be merged in starting from the top level of the array. If a key IS specified, items will be merged into that key. Nested keys may be specified using dot syntax.

Parameters
$key : string|null
$items : mixed
Return values
self

getDefined()

Get the specified configuration value, recursively removing all null values.

public getDefined( [ $key : string|array|null = null ] ) : mixed
Parameters
$key : string|array|null = null
Return values
mixed

Search results