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
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_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