Source for file constants.php

Documentation is available at constants.php

  1. <?php
  2. /* ******************************************************************** */
  3. /* CATALYST PHP Source Code */
  4. /* -------------------------------------------------------------------- */
  5. /* This program is free software; you can redistribute it and/or modify */
  6. /* it under the terms of the GNU General Public License as published by */
  7. /* the Free Software Foundation; either version 2 of the License, or */
  8. /* (at your option) any later version. */
  9. /* */
  10. /* This program is distributed in the hope that it will be useful, */
  11. /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
  12. /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
  13. /* GNU General Public License for more details. */
  14. /* */
  15. /* You should have received a copy of the GNU General Public License */
  16. /* along with this program; if not, write to: */
  17. /* The Free Software Foundation, Inc., 59 Temple Place, Suite 330, */
  18. /* Boston, MA 02111-1307 USA */
  19. /* -------------------------------------------------------------------- */
  20. /* */
  21. /* Filename: constants.php */
  22. /* Author: Paul Waite */
  23. /* Description: Useful contants for usage within Axyl. */
  24. /* */
  25. /* ******************************************************************** */
  26. /** @package utils *//** Kilobytes */
  27. ("KILOBYTE", 1024);
  28. /** Megabytes */
  29. ("MEGABYTE", 1048576);
  30. /** Gigabytes */
  31. ("GIGABYTE", 1073741824);
  32.  
  33. // Time
  34. /** Ten years - used as 'forever' */
  35. ("SECS_10_YEARS", 315360000);
  36. /** One year */
  37. ("SECS_1_YEAR", 31536000);
  38. /** One month */
  39. ("SECS_1_MONTH", 2592000);
  40. /** One week */
  41. ("SECS_1_WEEK", 604800);
  42. /** One day */
  43. ("SECS_1_DAY", 86400);
  44. /** 12 hours */
  45. ("SECS_12_HOURS", 43200);
  46. /** 8 hours */
  47. ("SECS_8_HOURS", 28800);
  48. /** 4 hours */
  49. ("SECS_4_HOURS", 14400);
  50. /** 1 hour */
  51. ("SECS_1_HOUR", 3600);
  52. /** 20 minutes */
  53. ("SECS_20_MINS", 1200);
  54.  
  55. /** Field delimiter used in record structures */
  56. ("FIELD_DELIM", "^_^");
  57. /** Record delimiter used in record lists */
  58. ("RECORD_DELIM", "~_~");
  59.  
  60. // -------------------------------------------------------------------------
  61. ?>

Documentation generated by phpDocumentor 1.3.0RC3