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

Source for file createTables.php

Documentation is available at createTables.php

  1. #!/usr/bin/php -q
  2. <?php
  3. // +----------------------------------------------------------------------+
  4. // | PHP Version 4                                                        |
  5. // +----------------------------------------------------------------------+
  6. // | Copyright (c) 1997-2003 The PHP Group                                |
  7. // +----------------------------------------------------------------------+
  8. // | This source file is subject to version 2.02 of the PHP license,      |
  9. // | that is bundled with this package in the file LICENSE, and is        |
  10. // | available at through the world-wide-web at                           |
  11. // | http://www.php.net/license/2_02.txt.                                 |
  12. // | If you did not receive a copy of the PHP license and are unable to   |
  13. // | obtain it through the world-wide-web, please send a note to          |
  14. // | license@php.net so we can mail you a copy immediately.               |
  15. // +----------------------------------------------------------------------+
  16. // | Author:  Alan Knowles <alan@akbkhome.com>
  17. // +----------------------------------------------------------------------+
  18. //
  19. // $Id: createTables.php,v 1.19 2004/02/10 07:34:51 alan_k Exp $
  20. //
  21.  
  22. require_once 'DB/DataObject/Generator.php';
  23.  
  24. if (!ini_get('register_argc_argv')) {
  25.     PEAR::raiseError("\nERROR: You must turn register_argc_argv On in you php.ini file for this to work\neg.\n\nregister_argc_argv = On\n\n"nullPEAR_ERROR_DIE);
  26.     exit;
  27. }
  28.  
  29. if (!@$_SERVER['argv'][1]{
  30.     PEAR::raiseError("\nERROR: createTable.php usage:\n\nC:\php\pear\DB\DataObjects\createTable.php example.ini\n\n"nullPEAR_ERROR_DIE);
  31.     exit;
  32. }
  33.  
  34. $config parse_ini_file($_SERVER['argv'][1]true);
  35.  
  36. $options &PEAR::getStaticProperty('DB_DataObject','options');
  37. $options $config['DB_DataObject'];
  38.  
  39. if (!$options{
  40.     PEAR::raiseError("\nERROR: could not read ini file\n\n"nullPEAR_ERROR_DIE);
  41.     exit;
  42. }
  43. DB_DataObject::debugLevel(1);
  44. $generator = new DB_DataObject_Generator;
  45. $generator->start();

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