$_options
$_options : array
The user's preferences.
Sam_Driver_Base defines an API for implementing storage backends for Sam.
setOption(string $option, string $value, boolean $defaults = false)
Sets a preference value for the user or as global defaults, depending on the parameters.
Does not automatically store options to the backend.
string | $option | The option to set. |
string | $value | The new value. |
boolean | $defaults | Whether to set the global defaults instead of user options. |
setListOption(string $option, string $value, boolean $defaults = false)
Sets an internal address array.
Useful for whitelists and blacklists. The passed data is split at whitespace. Does not automatically store options to the backend.
string | $option | The option to set. |
string | $value | A string of data that will be converted to an array and stored for later storage to the backend. |
boolean | $defaults | Whether to set the global defaults instead of user options. |
setStackedOption(string $option, string $value, boolean $defaults = false)
Sets an internal array of options which have multiple elements of data stored in their value.
E.g. rewrite_header takes two elements, a header and a string, as in 'rewrite_header' => 'Subject SPAM'.
There can be multiple entries for these options, so they cannot be treated independently.
Does not automatically store options to the backend.
string | $option | The base option to set. Should only be 'rewrite_header' ATM. |
string | $value | A string of data that will be converted to an array and stored for later storage to the backend. |
boolean | $defaults | Whether to set the global defaults instead of user options. |