Sitemap 0.9 response
| package |
jelix |
|---|---|
| subpackage |
core_response |
| link | |
| since | 1.2 |
__construct()
_checkRequestType()
_normalizeDate(mixed $date) : string
mixedCan be a jDateTime object, a DateTime object or a string understandable by strtotime
stringa date in GMT format
_parseUrlsXml() : array
array
addHttpHeader(string $htype, string $hcontent, integer $overwrite = true)
will be send during the output of the response
stringthe header type ("Content-Type", "Date-modified"...)
stringvalue of the header type
integerfalse or 0 if the value should be set only if it doesn't still exist -1 to add the header with the existing values true or 1 to replace the existing header
addSitemap(string $loc, string $lastmod = null) : boolean
stringURL of sitemap file
stringThe date of last modification of the sitemap file
booleantrue if addition is ok, else false
addUrl(string $loc, string $lastmod = null, string $changefreq = null, string $priority = null) : boolean
stringURL of the page
stringThe date of last modification of the file
stringHow frequently the page is likely to change
stringThe priority of this URL relative to other URLs
booleantrue if addition is ok, else false
cleanCacheHeaders()
clearHttpHeaders()
getFormatType() : string
stringthe name
getType() : string
stringthe name
getUrlsFromUrlsXml() : array
array
importFromUrlsXml() : void
isValidCache(mixed $dateLastModified = null, $etag = null, boolean $cleanCacheHeader = true) : boolean
mixedCan be a jDateTime object, a DateTime object or a string understandable by strtotime
booleanTrue for clean/delete other cache headers. Default : true.
booleanTrue if the client ressource version is fresh, false otherwise
output() : boolean
booleantrue if generation is ok, else false
outputErrors()
ping( $uri) : boolean
boolean
sendHttpHeaders()
setExpires( $date, $cleanCacheHeader = true)
| see | \_normalizeDate |
|---|---|
setHttpStatus(string $code, string $msg)
stringthe status code (200, 404...)
stringthe message following the status code ("OK", "Not Found"..)
setLifetime(integer $time, boolean $sharedCache = false, $cleanCacheHeader = true)
integerTime during which the page will be cached. Express in seconds.
booleanTrue if the lifetime concern a public/shared cache. Default : false.
_type : string
| var |
ident of the response type |
|---|
string
allowedChangefreq : array
| var |
|---|
array
maxSitemap : integer
| var |
|---|
integer
maxUrl : integer
| var |
|---|
integer
urlSitemap : \array()
| var |
|---|
\array()
urlList : \array()
| var |
|---|
\array()
contentTpl : string
| var |
|---|
string
_httpHeaders : array
| var |
list of http headers that will be send to the client |
|---|
array
_httpHeadersSent : boolean
| var |
indicates if http headers have already been sent to the client |
|---|
boolean
_httpStatusCode : string
| var |
the http status code to send |
|---|
string
_httpStatusMsg : string
| var |
the http status message to send |
|---|
string
_outputOnlyHeaders : boolean
| var |
Should we output only the headers or the entire response |
|---|
boolean
httpVersion :
forcedHttpVersion :