OXID eShop CE
4.10.0
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
oxheader.php
Go to the documentation of this file.
1
<?php
2
7
class
oxHeader
8
{
9
10
protected
$_aHeader
= array();
11
17
public
function
setHeader
($sHeader)
18
{
19
$sHeader = str_replace(array(
"\n"
,
"\r"
),
''
, $sHeader);
20
$this->_aHeader[] = (string) $sHeader .
"\r\n"
;
21
}
22
28
public
function
getHeader
()
29
{
30
return
$this->_aHeader
;
31
}
32
36
public
function
sendHeader
()
37
{
38
foreach
($this->_aHeader as $sHeader) {
39
if
(isset($sHeader)) {
40
header($sHeader);
41
}
42
}
43
}
44
50
public
function
setNonCacheable
()
51
{
52
$sHeader =
"Cache-Control: no-cache;"
;
53
$this->
setHeader
($sHeader);
54
}
55
}
core
oxheader.php
Generated by
1.8.1.2