Свойство | Тип | Описание | |
---|---|---|---|
$_capabilities | array | List of the capabilities supported by this driver. | |
$_db | Horde_Db_Adapter | Handle for the current database connection. |
Метод | Описание | |
---|---|---|
__construct ( string $user, array $params = [] ) | Constructor. | |
booleanToOption ( boolean $boolean ) : mixed | Converts a boolean option to a backend specific value. | |
retrieve ( ) | Retrieves user preferences from the backend. | |
store ( boolean $defaults = false ) | Stores user preferences and default values in the backend. |
Метод | Описание | |
---|---|---|
_createUserID ( ) : string | Creates an Amavisd-new recipient for policy, whitelist and blacklist storage and retrieval. | |
_lookupPolicyID ( ) : string | boolean | Returns an Amavisd-new policy for storage and retrieval. | |
_lookupUserID ( ) : string | Returns an Amavisd-new recipient for policy, whitelist and blacklist storage and retrieval. | |
_mapAttributeToField ( string $table, string $attribute ) : string | Converts a Sam attribute from a specific table to a field that Amavisd-new will use. | |
_mapFieldToAttribute ( string $table, string $field ) : string | Converts a Amavisd-new field from a specific table to a Sam attribute. | |
_mapNameToTable ( string $table ) : string | Converts a Sam table name to a table name that Amavisd-new will use. |
public __construct ( string $user, array $params = [] ) | ||
$user | string | A user name. |
$params | array | Class parameters: - db: (Horde_Db_Adapater) A database handle. - table_map: (array) A map of table and field names. See config/backends.php. |
protected _createUserID ( ) : string | ||
Результат | string | The id of the newly created recipient. |
protected _lookupPolicyID ( ) : string | boolean | ||
Результат | string | boolean | The results of the of the policy lookup. Can be the ID of the policy, false if not found. |
protected _lookupUserID ( ) : string | ||
Результат | string | The ID of the found or newly created recipient. |
protected _mapNameToTable ( string $table ) : string | ||
$table | string | The Sam table to lookup. |
Результат | string | The converted Amavisd-new table or the original name if no match is found. |
public booleanToOption ( boolean $boolean ) : mixed | ||
$boolean | boolean | The value to convert. |
Результат | mixed | Y if true and N if false. |
protected array $_capabilities | ||
Результат | array |