Solstice::PreferenceService - Allows for the permanent storage of user preferences.


Solstice documentation  | view source Contained in the Solstice distribution.

Index


NAME

Top

Solstice::PreferenceService - Allows for the permanent storage of user preferences.

SYNOPSIS

Top

    Only the subclasses of this object should be used, WebQ::PreferenceService 
    for example.

    use Solstice::PreferenceService;
    my $pref_service = new Solstice::PreferenceService;

    my $nickname = $pref_service->getPreference('nick');
    $pref_service->setPreference('nick', 'Magic Tom');

    The "solstice" database has a table named "Preference" that contains the
    definitions of the preference tags AKA magic strings e.g. 'nick'.

    All preferences are automatically set and got for the current user.

DESCRIPTION

Top

Superclass

Solstice::Service

Export

No symbols exported.

Methods

new([$namespace])
getPreference($tag);
setPreference($tag, $value);
_insertPreference(tag)

Used to insert all solstice preferences that might be missing override this method for application specific preferences

Private Methods

_setPreference($id, $tag, $value)
_getPreference($tag)
_getPreferenceID($tag)
_getUserID
_fillCache()
_loadCache()
_emptyCache()
_isLoaded()
_tagExists($tag)

Modules Used

Solstice::Database, Solstice::Service.

AUTHOR

Top

Catalyst Group, <catalyst@u.washington.edu>

VERSION

Top

$Revision: 3364 $

COPYRIGHT

Top


Solstice documentation  | view source Contained in the Solstice distribution.