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.
파일 보기
프로젝트 열기: 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. |
|
보호된 메소드들
메소드 상세
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 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. |
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. |
프로퍼티 상세
Handle for the current database connection.
protected Horde_Db_Adapter $_db |
리턴 |
Horde_Db_Adapter |
|