PHP 클래스 Sam_Driver_Amavisd_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.
저자: Max Kalika ([email protected])
저자: Jan Schneider ([email protected])
상속: extends Sam_Driver_Base
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

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

메소드 상세

__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_map: (array) A map of table and field names. See config/backends.php.

_createUserID() 보호된 메소드

Creates an Amavisd-new recipient for policy, whitelist and blacklist storage and retrieval.
protected _createUserID ( ) : string
리턴 string The id of the newly created recipient.

_lookupPolicyID() 보호된 메소드

Returns an Amavisd-new policy for storage and retrieval.
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.

_lookupUserID() 보호된 메소드

Returns an Amavisd-new recipient for policy, whitelist and blacklist storage and retrieval.
protected _lookupUserID ( ) : string
리턴 string The ID of the found or newly created recipient.

_mapAttributeToField() 보호된 메소드

Converts a Sam attribute from a specific table to a field that Amavisd-new will use.
protected _mapAttributeToField ( string $table, string $attribute ) : string
$table string The Sam table to lookup.
$attribute string The Sam attribute to convert.
리턴 string The converted Amavisd-new field or the original attribute if no match is found.

_mapFieldToAttribute() 보호된 메소드

Converts a Amavisd-new field from a specific table to a Sam attribute.
protected _mapFieldToAttribute ( string $table, string $field ) : string
$table string The Sam table to lookup.
$field string The Amavisd-new field to convert.
리턴 string The converted Sam attribute or the original field if no match is found.

_mapNameToTable() 보호된 메소드

Converts a Sam table name to a table name that Amavisd-new will use.
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.

booleanToOption() 공개 메소드

Converts a boolean option to a backend specific value.
public booleanToOption ( boolean $boolean ) : mixed
$boolean boolean The value to convert.
리턴 mixed Y if true and N if false.

retrieve() 공개 메소드

Retrieves user preferences 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. Unused.

프로퍼티 상세

$_capabilities 보호되어 있는 프로퍼티

List of the capabilities supported by this driver.
protected array $_capabilities
리턴 array

$_db 보호되어 있는 프로퍼티

Handle for the current database connection.
protected Horde_Db_Adapter $_db
리턴 Horde_Db_Adapter