[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 * This file is part of the DebugBar package. 4 * 5 * (c) 2013 Maxime Bouroumeau-Fuseau 6 * 7 * For the full copyright and license information, please view the LICENSE 8 * file that was distributed with this source code. 9 */ 10 11 namespace DebugBar; 12 13 /** 14 * HTTP driver for native php 15 */ 16 class PhpHttpDriver implements HttpDriverInterface 17 { 18 /** 19 * @param array $headers 20 */ 21 function setHeaders(array $headers) 22 { 23 foreach ($headers as $name => $value) { 24 header("$name: $value"); 25 } 26 } 27 28 /** 29 * @return bool 30 */ 31 function isSessionStarted() 32 { 33 return isset($_SESSION); 34 } 35 36 /** 37 * @param string $name 38 * @param string $value 39 */ 40 function setSessionValue($name, $value) 41 { 42 $_SESSION[$name] = $value; 43 } 44 45 /** 46 * @param string $name 47 * @return bool 48 */ 49 function hasSessionValue($name) 50 { 51 return array_key_exists($name, $_SESSION); 52 } 53 54 /** 55 * @param string $name 56 * @return mixed 57 */ 58 function getSessionValue($name) 59 { 60 return $_SESSION[$name]; 61 } 62 63 /** 64 * @param string $name 65 */ 66 function deleteSessionValue($name) 67 { 68 unset($_SESSION[$name]); 69 } 70 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |