SuperGlobal.hx 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /*
  2. * Copyright (C)2005-2019 Haxe Foundation
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  20. * DEALINGS IN THE SOFTWARE.
  21. */
  22. package php;
  23. class SuperGlobal {
  24. /**
  25. @see http://php.net/manual/en/reserved.variables.globals.php
  26. **/
  27. public static var GLOBALS(get, never):NativeAssocArray<Dynamic>;
  28. static inline function get_GLOBALS()
  29. return Syntax.code("$GLOBALS");
  30. /**
  31. @see http://php.net/manual/en/reserved.variables.server.php
  32. **/
  33. public static var _SERVER(get, never):NativeAssocArray<Dynamic>;
  34. static inline function get__SERVER()
  35. return Syntax.code("$_SERVER");
  36. /**
  37. @see http://php.net/manual/en/reserved.variables.get.php
  38. **/
  39. public static var _GET(get, never):NativeAssocArray<Dynamic>;
  40. static inline function get__GET()
  41. return Syntax.code("$_GET");
  42. /**
  43. @see http://php.net/manual/en/reserved.variables.post.php
  44. **/
  45. public static var _POST(get, never):NativeAssocArray<Dynamic>;
  46. static inline function get__POST()
  47. return Syntax.code("$_POST");
  48. /**
  49. @see http://php.net/manual/en/reserved.variables.files.php
  50. **/
  51. public static var _FILES(get, never):NativeAssocArray<Dynamic>;
  52. static inline function get__FILES()
  53. return Syntax.code("$_FILES");
  54. /**
  55. @see http://php.net/manual/en/reserved.variables.cookie.php
  56. **/
  57. public static var _COOKIE(get, never):NativeAssocArray<Dynamic>;
  58. static inline function get__COOKIE()
  59. return Syntax.code("$_COOKIE");
  60. /**
  61. @see http://php.net/manual/en/reserved.variables.session.php
  62. **/
  63. public static var _SESSION(get, never):NativeAssocArray<Dynamic>;
  64. static inline function get__SESSION()
  65. return Syntax.code("$_SESSION");
  66. /**
  67. @see http://php.net/manual/en/reserved.variables.request.php
  68. **/
  69. public static var _REQUEST(get, never):NativeAssocArray<Dynamic>;
  70. static inline function get__REQUEST()
  71. return Syntax.code("$_REQUEST");
  72. /**
  73. @see http://php.net/manual/en/reserved.variables.env.php
  74. **/
  75. public static var _ENV(get, never):NativeAssocArray<Dynamic>;
  76. static inline function get__ENV()
  77. return Syntax.code("$_ENV");
  78. }