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

Source for file buildPackage.php

Documentation is available at buildPackage.php

  1. <?php
  2.  
  3. require_once 'PEAR/PackageFileManager.php';
  4. $fm = new PEAR_PackageFileManager();
  5. $options = array(
  6.                 'packagefile' => 'package.xml',
  7.                 'state' => 'alpha',
  8.                 'version' => '0.2.0',
  9.                 'notes' => 'Development snapshot, not for production use.',
  10.                 'filelistgenerator' => 'file',
  11.                 'baseinstalldir' => 'HTTP',
  12.                 'package' => 'HTTP_Session2',
  13.                 'summary' => 'PHP5 Session Handler',
  14.                 'description' => 'PHP5 Object-oriented interface to the session_* family functions it 
  15.                     provides extra features such as database storage for session data using DB 
  16.                     package. Supported containers are Creole, PEAR::DB and PEAR::MDB. It introduces 
  17.                     new methods like isNew(), useCookies(), setExpire(), setIdle(), isExpired(), 
  18.                     isIdled() and others.',
  19.                 'doctype' => 'http://pear.php.net/dtd/package-1.0',
  20.                 'packagedirectory' => 'c:/Program Files/Apache Group/Apache2/htdocs/Projects/pear/HTTP_Session2/',
  21.                 'license' => 'PHP License',
  22.                 'changelogoldtonew' => true,
  23.                 'roles' =>
  24.                   array(
  25.                       'php' => 'php',
  26.                       'txt' => 'doc',
  27.                       '*' => 'data',
  28.                        ),
  29.                 'dir_roles' =>
  30.                   array(
  31.                       'sql' => 'data',
  32.                       'examples' => 'doc',
  33.                       'tests' => 'test',
  34.                        )
  35.                 );
  36. $e $fm->setOptions($options);
  37. if (PEAR::isError($e)) {
  38.     echo $e->getMessage();
  39.     die();
  40. }
  41. $fm->addMaintainer('tbibbs''lead''Tony Bibbs''tony@geeklog.net');
  42.  
  43. $e $fm->writePackageFile();
  44. if (PEAR::isError($e)) {
  45.     echo $e->getMessage();
  46.     die();
  47. }
  48.  
  49. ?>

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