\rex_system_setting

This class can be used to add settings to the system settings page.

Summary

Methods
Properties
Constants
getKey()
getField()
setValue()
register()
getAll()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getKey()

getKey() : string

Returns the setting key.

Returns

string —

getField()

getField() : \rex_form_element

Returns the field.

Returns

\rex_form_element —

setValue()

setValue(mixed  $value) : string|bool

Sets the new value.

Parameters

mixed $value

Returns

string|bool —

True, when everything went well. String a errormessage in case of failure.

register()

register(self  $setting) : mixed

Registers a setting object.

Parameters

self $setting

Setting object

Returns

mixed —

getAll()

getAll() : self[]

Returns all registered setting objects.

Returns

self[] —