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

Source for file buildPackage.php

Documentation is available at buildPackage.php

  1. <?php
  2. require_once 'PEAR/PackageFileManager.php';
  3. $fm = new PEAR_PackageFileManager();
  4. $options = array(
  5.                 'packagefile' => 'package.xml',
  6.                 'state' => 'alpha',
  7.                 'version' => '2.0.0dev1',
  8.                 'notes' => 'Initial development release.',
  9.                 'filelistgenerator' => 'cvs',
  10.                 'baseinstalldir' => 'Auth',
  11.                 'package' => 'Auth_PrefManager2',
  12.                 'summary' => 'Preferences management class',
  13.                 'description' => 'Preference Manager is a class to handle user preferences in a web application, looking them up in a table
  14. using a combination of their userid, and the preference name to get a value, and (optionally) returning
  15. a default value for the preference if no value could be found for that user.
  16.  
  17. Auth_PrefManager2 supports data containers to allow reading/writing with different sources, currently PEAR DB and a simple array based container are supported, although support is planned for an LDAP container as well. If you don\'t need support for different sources, or setting preferences for multiple applications you should probably use Auth_PrefManager instead.',
  18.                 'doctype' => 'http://pear.php.net/dtd/package-1.0',
  19.                 'packagedirectory' => 'c:/documents and settings/jon/my documents/pear/Auth_PrefManager2/',
  20.                 'license' => 'PHP License',
  21.                 'changelogoldtonew' => true,
  22.                 'roles' =>
  23.                   array(
  24.                       'php' => 'php',
  25.                       'txt' => 'doc',
  26.                       '*' => 'data',
  27.                        ),
  28.                 'dir_roles' =>
  29.                   array(
  30.                       'sql' => 'data',
  31.                       'examples' => 'doc',
  32.                       'tests' => 'test',
  33.                        )
  34.                 );
  35. $e $fm->setOptions($options);
  36. if (PEAR::isError($e)) {
  37.     echo $e->getMessage();
  38.     die();
  39. }
  40. $fm->addMaintainer('jellybob''lead''Jon Wood''jon@jellybob.co.uk');
  41. $fm->addMaintainer('pmjones''developer''Paul M. Jones''pmjones@ciaweb.net');
  42. $e $fm->writePackageFile();
  43. if (PEAR::isError($e)) {
  44.     echo $e->getMessage();
  45.     die();
  46. }
  47. ?>

Documentation generated on Mon, 11 Mar 2019 13:54:06 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.