HumHub Documentation (unofficial)

AbstractOptions
in package
implements ParameterObjectInterface

AbstractYes

Table of Contents

Interfaces

ParameterObjectInterface

Properties

$__strictMode__  : bool
We use the __ prefix to avoid collisions with properties in user-implementations.

Methods

__construct()  : mixed
Constructor
__get()  : mixed
Get a configuration property
__isset()  : bool
Test if a configuration property is null
__set()  : void
Set a configuration property
__unset()  : void
Set a configuration property to NULL
setFromArray()  : AbstractOptions
Set one or more configuration properties
toArray()  : array<string|int, mixed>
Cast to array

Properties

$__strictMode__

We use the __ prefix to avoid collisions with properties in user-implementations.

protected bool $__strictMode__ = true

Methods

__construct()

Constructor

public __construct([array<string|int, mixed>|Traversable|null $options = null ]) : mixed
Parameters
$options : array<string|int, mixed>|Traversable|null = null

__isset()

Test if a configuration property is null

public __isset(string $key) : bool
Parameters
$key : string
Tags
see
ParameterObject::__isset()
Return values
bool

__set()

Set a configuration property

public __set(string $key, mixed $value) : void
Parameters
$key : string
$value : mixed
Tags
see
ParameterObject::__set()
throws
BadMethodCallException

toArray()

Cast to array

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

        
On this page

Search results