Source for file PM_Example.php
Documentation is available at PM_Example.php
require_once("Auth/PrefManager.php");
$options = array ("table" => "user_prefs");
$prefs = new PrefManager ($dsn, $options);
$prefs->setDefaultValue ("fullname", "New User");
$prefs->setValue ("jon", "fullname", "Jon Wood");
$jonName = $prefs->getPref ("jon", "fullname");
$billName = $prefs->getPref ("bill", "");
* <p>Jon's name is Jon Wood<br/>
* Bills's name is New User</p>
echo " <p>Jon's name is $jonName<br/>";
echo " Bill's name is $billName</p>";
Documentation generated on Mon, 11 Mar 2019 15:48:38 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|