$_options
$_options : array
The user's preferences.
Sam SQL storage implementation using Horde_Db.
Copyright 2003-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
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. |
_mapAttributeToField(string $table, string $attribute) : string
Converts a Sam attribute from a specific table to a field that Amavisd-new will use.
string | $table | The Sam table to lookup. |
string | $attribute | The Sam attribute to convert. |
The converted Amavisd-new field or the original attribute if no match is found.
_mapFieldToAttribute(string $table, string $field) : string
Converts a Amavisd-new field from a specific table to a Sam attribute.
string | $table | The Sam table to lookup. |
string | $field | The Amavisd-new field to convert. |
The converted Sam attribute or the original field if no match is found.