PHP Класс 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.
Автор: Chris Bowlby ([email protected])
Автор: Max Kalika ([email protected])
Автор: Jan Schneider ([email protected])
Наследование: extends Sam_Driver_Spamd_Base
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_db Horde_Db_Adapter Handle for the current database connection.

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
_retrieve ( boolean $defaults = false ) : array Retrieve an option set from the storage backend.

Описание методов

__construct() публичный Метод

Constructor.
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() защищенный Метод

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.
Результат array Array of option-value pairs.

retrieve() публичный Метод

Retrieves user preferences and default values from the backend.
public retrieve ( )

store() публичный Метод

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.

Описание свойств

$_db защищенное свойство

Handle for the current database connection.
protected Horde_Db_Adapter $_db
Результат Horde_Db_Adapter