PHP Class Horde_Prefs_Storage_Sql, horde

Author: Jon Parise ([email protected])
Author: Michael Slusarz ([email protected])
Inheritance: extends Horde_Prefs_Storage_Base
Show file Open project: horde/horde

Protected Properties

Property Type Description
$_db Horde_Db_Adapter Handle for the current database connection.

Public Methods

Method Description
__construct ( string $user, array $params = [] ) Constructor.
get ( $scope_ob )
getCharset ( ) : string Returns the charset of the DB backend.
listScopes ( ) : array Lists all available scopes.
remove ( $scope = null, $pref = null )
store ( $scope_ob )

Method Details

__construct() public method

Constructor.
public __construct ( string $user, array $params = [] )
$user string The username.
$params array Configuration parameters: - db: (Horde_Db_Adapter) [REQUIRED] The DB instance. - table: (string) The name of the prefs table. DEFAULT: 'horde_prefs'

get() public method

public get ( $scope_ob )

getCharset() public method

Returns the charset of the DB backend.
public getCharset ( ) : string
return string The connection's charset.

listScopes() public method

Lists all available scopes.
public listScopes ( ) : array
return array The list of scopes stored in the backend.

remove() public method

public remove ( $scope = null, $pref = null )

store() public method

public store ( $scope_ob )

Property Details

$_db protected property

Handle for the current database connection.
protected Horde_Db_Adapter $_db
return Horde_Db_Adapter