Auth_PrefManager
[ class tree: Auth_PrefManager ] [ index: Auth_PrefManager ] [ all elements ]

Source for file PM_Example.php

Documentation is available at PM_Example.php

  1. <?php
  2.     require_once("Auth/PrefManager.php");
  3.     $options = array("table" => "user_prefs");
  4.     $prefs = new PrefManager($dsn$options);
  5.  
  6.     $prefs->setDefaultValue("fullname""New User");
  7.     $prefs->setValue("jon""fullname""Jon Wood");
  8.  
  9.     $jonName $prefs->getPref("jon""fullname");
  10.     $billName $prefs->getPref("bill""");
  11.  
  12.     /*
  13.     * Outputs:
  14.     * <p>Jon's name is Jon Wood<br/>
  15.     *    Bills's name is New User</p>
  16.     */
  17.     echo "<p>Jon's name is $jonName<br/>";
  18.     echo "   Bill's name is $billName</p>";
  19. ?>

Documentation generated on Mon, 11 Mar 2019 15:48:38 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.