• PHP reference
  • Sandbox

Settings

class Sandbox\Settings

Class Settings.

Get and set Module settings on a Community-basis

Methods

mixed|null get(string $id)

Get setting.

Parameters

  • string $id Setting key

Return Value

  • mixed|null

boolean set(string $id, mixed $value)

Set setting.

Parameters

  • string $id Setting key
  • mixed $value New value

Return Value

  • boolean

__construct(array $s)

Settings constructor.

Parameters

  • array $s

mixed|null __get(string $id)

Magic get.

Parameters

  • string $id

Return Value

  • mixed|null

boolean __set(string $id, mixed $value)

Magic set.

Parameters

  • string $id
  • mixed $value

Return Value

  • boolean

boolean __isset(string $id)

Magic isset.

Parameters

  • string $id

Return Value

  • boolean