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

Source for file package_querysim.php

Documentation is available at package_querysim.php

  1. <?php
  2.  
  3. require_once 'PEAR/PackageFileManager.php';
  4.  
  5. $version '0.1.1';
  6. $notes = <<<EOT
  7. - increased php dependency to 4.3.0 due to the usage of the streams API since beta5
  8. - fix PHP4.4 breakage
  9. - use !empty() instead of isset() in fetchRow to determine if result cols were bound or result types were set
  10. - moved all private fetch mode fix methods into _fixResultArrayValues() for performance reasons
  11. - renamed MDB2_PORTABILITY_LOWERCASE to MDB2_PORTABILITY_FIX_CASE and use 'field_case' option to determine if to upper- or lowercase (CASE_LOWER/CASE_UPPER)
  12. - use array_key_exists() instead of isset() where possible
  13. - return 0 for manipulation queries when disable_query is enabled
  14. EOT;
  15.  
  16. $package = new PEAR_PackageFileManager();
  17.  
  18. $result $package->setOptions(
  19.     array(
  20.         'packagefile'       => 'package_querysim.xml',
  21.         'package'           => 'MDB2_Driver_querysim',
  22.         'summary'           => 'querysim MDB2 driver',
  23.         'description'       => 'This is the Querysim MDB2 driver.',
  24.         'version'           => $version,
  25.         'state'             => 'alpha',
  26.         'license'           => 'BSD License',
  27.         'filelistgenerator' => 'cvs',
  28.         'include'           => array('*querysim*'),
  29.         'notes'             => $notes,
  30.         'changelogoldtonew' => false,
  31.         'simpleoutput'      => true,
  32.         'baseinstalldir'    => '/',
  33.         'packagedirectory'  => './',
  34.         'dir_roles'         => array(
  35.             'docs' => 'doc',
  36.              'examples' => 'doc',
  37.              'tests' => 'test',
  38.              'tests/templates' => 'test',
  39.         ),
  40.     )
  41. );
  42.  
  43. if (PEAR::isError($result)) {
  44.     echo $result->getMessage();
  45.     die();
  46. }
  47.  
  48. $package->addMaintainer('lsmith''lead''Lukas Kahwe Smith''smith@pooteeweet.org');
  49.  
  50. $package->addDependency('php''4.3.0''ge''php'false);
  51. $package->addDependency('PEAR''1.0b1''ge''pkg'false);
  52. $package->addDependency('MDB2''2.0.0beta6''ge''pkg'false);
  53.  
  54. $package->addglobalreplacement('package-info''@package_version@''version');
  55.  
  56. if (array_key_exists('make'$_GET|| (isset($_SERVER['argv'][1]&& $_SERVER['argv'][1== 'make')) {
  57.     $result $package->writePackageFile();
  58. else {
  59.     $result $package->debugPackageFile();
  60. }
  61.  
  62. if (PEAR::isError($result)) {
  63.     echo $result->getMessage();
  64.     die();
  65. }

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