Overview

Packages

  • Prefs

Classes

  • Horde_Prefs
  • Horde_Prefs_Cache_Base
  • Horde_Prefs_Cache_Null
  • Horde_Prefs_Cache_Session
  • Horde_Prefs_CategoryManager
  • Horde_Prefs_Exception
  • Horde_Prefs_Identity
  • Horde_Prefs_Scope
  • Horde_Prefs_Storage_Base
  • Horde_Prefs_Storage_File
  • Horde_Prefs_Storage_Imsp
  • Horde_Prefs_Storage_KolabImap
  • Horde_Prefs_Storage_Ldap
  • Horde_Prefs_Storage_Null
  • Horde_Prefs_Storage_Sql
  • Horde_Prefs_Translation
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Prefs_Storage_Sql

Preferences storage implementation for a SQL database.

Copyright 1999-2012 Horde LLC (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Horde_Prefs_Storage_Base
Extended by Horde_Prefs_Storage_Sql
Package: Prefs
Category: Horde
License: LGPL 2.1
Author: Jon Parise jon@horde.org
Author: Michael Slusarz slusarz@horde.org
Located at Horde/Prefs/Storage/Sql.php
Methods summary
public
# __construct( string $user, array $params = array() )

Constructor.

Constructor.

Parameters

$user
The username.
$params
Configuration parameters. <pre><span class="php-quote">'db'</span> - (Horde_Db_Adapter) [REQUIRED] The DB instance. <span class="php-quote">'table'</span> - (string) The name of the prefs table. <span class="php-keyword1">DEFAULT</span>: <span class="php-quote">'horde_prefs'</span></pre>

Throws

InvalidArgumentException

Overrides

Horde_Prefs_Storage_Base::__construct()
public string
# getCharset( )

Returns the charset of the DB backend.

Returns the charset of the DB backend.

Returns

string
The connection's charset.
public Horde_Prefs_Scope
# get( Horde_Prefs_Scope $scope_ob )

Parameters

$scope_ob
The scope object.

Returns

Horde_Prefs_Scope
The modified scope object.

Throws

Horde_Prefs_Exception
public
# store( Horde_Prefs_Scope $scope_ob )

Parameters

$scope_ob
The scope object.

Throws

Horde_Prefs_Exception
public
# remove( string $scope = null, string $pref = null )

Parameters

$scope
<p>The scope of the prefs to clear. If null, clears all scopes.</p>
$pref
<p>The pref to clear. If null, clears the entire scope.</p>

Throws

Horde_Prefs_Exception
public array
# listScopes( )

Lists all available scopes.

Lists all available scopes.

Returns

array
The list of scopes stored in the backend.

Since

Horde_Prefs 1.1.0

Overrides

Horde_Prefs_Storage_Base::listScopes()
Methods inherited from Horde_Prefs_Storage_Base
getParams(), onChange()
API documentation generated by ApiGen