PHP Class Sam_Driver_Spamd_Sql, horde
Copyright 2003-2016 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (GPL). If you
did not receive this file, see http://www.horde.org/licenses/gpl.
Afficher le fichier
Open project: horde/horde
Protected Properties
Свойство |
Type |
Description |
|
$_db |
Horde_Db_Adapter |
Handle for the current database connection. |
|
Méthodes publiques
Méthode |
Description |
|
__construct ( string $user, array $params = [] ) |
Constructor. |
|
retrieve ( ) |
Retrieves user preferences and default values from the backend. |
|
store ( boolean $defaults = false ) |
Stores user preferences and default values in the backend. |
|
Méthodes protégées
Méthode |
Description |
|
_retrieve ( boolean $defaults = false ) : array |
Retrieve an option set from the storage backend. |
|
Method Details
__construct()
public méthode
public __construct ( string $user, array $params = [] ) |
$user |
string |
A user name. |
$params |
array |
Class parameters:
- db: (Horde_Db_Adapater) A database handle.
- table: (string) The name of the preference table.
- global_user: (string, optional) A user name to
use when setting global preferences. Defaults to
'@GLOBAL'. |
_retrieve()
protected méthode
Retrieve an option set from the storage backend.
protected _retrieve ( boolean $defaults = false ) : array |
$defaults |
boolean |
Whether to retrieve the global defaults
instead of user options. |
Résultat |
array |
Array of option-value pairs. |
retrieve()
public méthode
Retrieves user preferences and default values from the backend.
Stores user preferences and default values in the backend.
public store ( boolean $defaults = false ) |
$defaults |
boolean |
Whether to store the global defaults instead
of user options. |
Property Details
$_db protected_oe property
Handle for the current database connection.
protected Horde_Db_Adapter $_db |
Résultat |
Horde_Db_Adapter |
|