Permalink
Browse files

add request mod

Signed-off-by: Adrian Jones <adrianj1998@hotmail.com>
  • Loading branch information...
1 parent c4fa121 commit a9d9fa03c120ba5e0fcdc5a9cf4ed300df23fad4 @adrianj98 adrianj98 committed Sep 30, 2012
Showing with 42 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +41 −0 core/request.class.php
View
1 .gitignore
@@ -0,0 +1 @@
+/nbproject/private/
View
41 core/request.class.php
@@ -0,0 +1,41 @@
+<?php
+
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+/**
+ * Description of request
+ *
+ * @author adrian
+ */
+class request {
+
+ protected $GET = array();
+
+ protected $POST = array();
+ public function __get($index) {
+ if (isset($this->GET[$index]))
+ return $this->GET[$index];
+ if (isset($this->POST[$index]))
+ return $this->POST[$index];
+ return null;
+ }
+
+ public function setPOST($index, $value) {
+ $this->POST[$index] = $value;
+ }
+ public function setGET($index, $value) {
+ $this->GET[$index] = $value;
+ }
+ function addPOST($post)
+ {
+ $this->POST = $post;
+ }
+
+
+
+}
+
+

0 comments on commit a9d9fa0

Please sign in to comment.