The Horde preferences system is insanely flexible
<?php
require_once HORDE_BASE . '/lib/Prefs.php';
$prefs = Prefs::factory($driver, $registry->getApp(), Auth::getAuth(), $pass, $params); $prefs->retrieve();
// Check the value of a preference $val = $prefs->getValue('prefname');
// Set a preference $prefs->setValue('prefname', $val);
?>
- Preferences can be global (Horde-wide) or specific to an application.
- Preferences are cached in the session and only stored when they change.
- SQL, LDAP, and session-only backends are available.
|