| 1: | <?php |
| 2: | namespace Sphp\core{ |
| 3: | class Request { |
| 4: | /** @var string $method Request Method */ |
| 5: | public $method = ""; |
| 6: | /** @var string $mode Default SERVER OR CLI or CGI */ |
| 7: | public $mode = "SERVER"; |
| 8: | /** @var string $protocol Request Protocol */ |
| 9: | public $protocol = ""; |
| 10: | /** @var boolean $blnsecure Request SSL */ |
| 11: | public $blnsecure = false; |
| 12: | /** @var string $uri Request URI */ |
| 13: | public $uri = ""; |
| 14: | /** @var string $scriptpath Engine Script Path */ |
| 15: | public $scriptpath = ""; |
| 16: | /** @var array $argv Command Line Arguments */ |
| 17: | public $argv = array(); |
| 18: | /** @var string $type Request Type Default NORMAL or AJAX or SOAP */ |
| 19: | public $type = "NORMAL"; |
| 20: | /** @var boolean $isNativeClient true if Gate embed with browser */ |
| 21: | public $isNativeClient = false; |
| 22: | /** |
| 23: | * Get All Request Headers |
| 24: | * @return array() |
| 25: | */ |
| 26: | public function getClientHeaders() {} |
| 27: | /** |
| 28: | * Advance Function, Internal use |
| 29: | */ |
| 30: | public function parseRequest() {} |
| 31: | /** |
| 32: | * True if Application run with SphpServer Mode or Browser embed mode |
| 33: | * False on Web Server Mode or Console Mode |
| 34: | * @return boolean |
| 35: | */ |
| 36: | public function isNativeApp() {} |
| 37: | /** |
| 38: | * Check if client demand JSON response. |
| 39: | * @return boolean |
| 40: | */ |
| 41: | public function isAJAX() {} |
| 42: | /** |
| 43: | * Read Browser Get Method Data |
| 44: | * @param string $name key |
| 45: | * @param boolean $blnRaw true mean, no escaping |
| 46: | * @return string|array |
| 47: | */ |
| 48: | public function get($name, $blnRaw = false) {} |
| 49: | /** |
| 50: | * Read Browser Post Method Data |
| 51: | * @param string $name key |
| 52: | * @param boolean $blnRaw true mean, no escaping |
| 53: | * @return string|array |
| 54: | */ |
| 55: | public function post($name, $blnRaw = false) {} |
| 56: | /** |
| 57: | * Check if Request has key |
| 58: | * @param string $name key |
| 59: | * @return boolean |
| 60: | */ |
| 61: | public function isRequest($name) {} |
| 62: | /** |
| 63: | * Check if Cookie has key |
| 64: | * @param string $name key |
| 65: | * @return boolean |
| 66: | */ |
| 67: | public function isCookie($name) {} |
| 68: | /** |
| 69: | * Check if Session has key |
| 70: | * @param string $name key |
| 71: | * @return boolean |
| 72: | */ |
| 73: | public function isSession($name) {} |
| 74: | /** |
| 75: | * Check if Server has key |
| 76: | * @param string $name key |
| 77: | * @return boolean |
| 78: | */ |
| 79: | public function isServer($name) {} |
| 80: | /** |
| 81: | * Check if Post has key |
| 82: | * @param string $name key |
| 83: | * @return boolean |
| 84: | */ |
| 85: | public function isPost($name) {} |
| 86: | /** |
| 87: | * Check if Get has key |
| 88: | * @param string $name key |
| 89: | * @return boolean |
| 90: | */ |
| 91: | public function isGet($name) {} |
| 92: | /** |
| 93: | * Check if File has key |
| 94: | * @param string $name key |
| 95: | * @return boolean |
| 96: | */ |
| 97: | public function isFile($name) {} |
| 98: | /** |
| 99: | * Read/Write Request key |
| 100: | * @param string $name key |
| 101: | * @param boolean $blnRaw true mean, no escaping at time of reading |
| 102: | * @param string|array $value null mean read key |
| 103: | * @return string |
| 104: | */ |
| 105: | public function request($name, $blnRaw = false,$value=null) {} |
| 106: | /** |
| 107: | * Read Raw Request Data |
| 108: | * @return string |
| 109: | */ |
| 110: | public function requestStream() {} |
| 111: | /** |
| 112: | * Write/Read Cookie |
| 113: | * @param string $name key |
| 114: | * @param boolean $blnRaw true mean, no escaping at time of reading |
| 115: | * @param string|array $value null mean read key |
| 116: | * @param int $expire |
| 117: | * @param string $path |
| 118: | * @param string $domain |
| 119: | * @param boolean $secure |
| 120: | * @param boolean $httponly |
| 121: | * @return string |
| 122: | */ |
| 123: | public function cookie($name, $value = null, $blnRaw = false,$expire=-1,$path='/', $domain="", $secure=false, $httponly=true) {} |
| 124: | /** |
| 125: | * Write/Read Cookie with tamper protection. Bad cookie return empty value. |
| 126: | * @param string $name key |
| 127: | * @param boolean $blnRaw true mean, no escaping at time of reading |
| 128: | * @param string|array $value null mean read key |
| 129: | * @param int $expire |
| 130: | * @param string $path |
| 131: | * @param string $domain |
| 132: | * @param boolean $secure |
| 133: | * @param boolean $httponly |
| 134: | * @return string |
| 135: | */ |
| 136: | public function cookie_secure($name, $value = null, $blnRaw = false,$expire=-1,$path='/', $domain="", $secure=false, $httponly=true,$prefix="") {} |
| 137: | /** |
| 138: | * Advance Function, Internal use |
| 139: | */ |
| 140: | public function restoreSessionFromStorage() {} |
| 141: | /** |
| 142: | * Advance Function, Internal use |
| 143: | */ |
| 144: | public function saveSessionToStorage() {} |
| 145: | /** |
| 146: | * Delete Cookie |
| 147: | * @param string $name key |
| 148: | */ |
| 149: | public function unsetCookie($name) {} |
| 150: | /** |
| 151: | * Delete Session Variable |
| 152: | * @param string $name key |
| 153: | */ |
| 154: | public function unsetSession($name) {} |
| 155: | /** |
| 156: | * Destroy All Session Data |
| 157: | */ |
| 158: | public function destroySession() {} |
| 159: | /** |
| 160: | * Read/Write Session key |
| 161: | * @param string $name key |
| 162: | * @param string|array $value null mean read key |
| 163: | * @return string|array |
| 164: | */ |
| 165: | public function session($name, $value = null) {} |
| 166: | /** |
| 167: | * Advance Function, Internal use |
| 168: | */ |
| 169: | public function setUseServerVariables() {} |
| 170: | /** |
| 171: | * Advance Function, Internal use |
| 172: | */ |
| 173: | public function svar($name, $value = null) {} |
| 174: | /** |
| 175: | * Read $_SERVER key |
| 176: | * @param string $name key |
| 177: | * @return string |
| 178: | */ |
| 179: | public function server($name) {} |
| 180: | /** |
| 181: | * Read $_FILES key |
| 182: | * @param string $name key |
| 183: | * @return string |
| 184: | */ |
| 185: | public function files($name) {} |
| 186: | /** |
| 187: | * Advance Function, Internal use |
| 188: | */ |
| 189: | public function escapetag($str) {} |
| 190: | /** |
| 191: | * Advance Function, Internal use |
| 192: | * @deprecated 4.4.8 |
| 193: | */ |
| 194: | public function getEngineRootPath() {} |
| 195: | /** |
| 196: | * Advance Function, Internal use |
| 197: | */ |
| 198: | public function getURLSafe($val) {} |
| 199: | /** |
| 200: | * Advance Function, Internal use |
| 201: | */ |
| 202: | public function getURLSafeRet($val) {} |
| 203: | } |
| 204: | } |
| 205: |