Globals.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * Defines globals used throughout amfphp package for config options
  4. *
  5. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  6. * @copyright (c) 2003 amfphp.org
  7. * @package flashservices
  8. * @subpackage app
  9. */
  10. global $amfphp;
  11. $amfphp['errorLevel'] = E_ALL ^ E_NOTICE;
  12. $amfphp['instanceName'] = NULL;
  13. $amfphp['classPath'] = 'services/';
  14. $amfphp['customMappingsPath'] = 'services/';
  15. $amfphp['webServiceMethod'] = 'php5';
  16. $amfphp['disableDescribeService'] = false;
  17. $amfphp['disableTrace'] = false;
  18. $amfphp['disableDebug'] = false;
  19. $amfphp['lastMethodCall'] = '/1';
  20. $amfphp['lastMessageId'] = '';
  21. $amfphp['isFlashComm'] = false;
  22. $amfphp['classInstances'] = array();
  23. $amfphp['encoding'] = "amf0";
  24. $amfphp['native'] = true;
  25. $amfphp['totalTime'] = 0;
  26. $amfphp['callTime'] = 0;
  27. $amfphp['decodeTime'] = 0;
  28. $amfphp['includeTime'] = 0;
  29. //Because startTime is defined BEFORE this file is called, we don't define it here (else
  30. //we would overwrite it
  31. $amfphp['adapterMappings'] = array(
  32. 'db_result' => 'peardb', //PEAR::DB
  33. 'pdostatement' => 'pdo', //PDO
  34. 'mysqli_result' => 'mysqliobject', //Mysqli
  35. 'sqliteresult' => 'sqliteobject', //SQLite
  36. 'sqliteunbuffered' => 'sqliteobject',
  37. 'adorecordset' => 'adodb', //ADODB
  38. 'zend_db_table_row' => 'zendrow', //Zend::DB
  39. 'zend_db_table_rowset' => 'zendrowset',
  40. 'recordset' => 'plainrecordset', //Plain recordset
  41. 'doctrine_collection_immediate' => 'doctrine' //Doctrine table
  42. );
  43. ?>