Documentation

Response
in package

Class Response

Table of Contents

Cookie()  : mixed
header301()  : mixed
$code = 301; Use when the old page has been permanently moved and any future requests should be sent to the target page instead.
header302()  : mixed
$code = 302; Temporary redirect so page is only cached if indicated by a Cache-Control or Expires header field.
header303()  : mixed
$code = 303; This method exists primarily to allow the output of a POST-activated script to redirect the user agent to a selected resource.
header307()  : mixed
$code = 307; Beware that when used after a form is submitted using POST, it would carry over the posted values to the next page, such if target.php contains a form processing script, it will process the submitted info again!
header404()  : mixed
headerCACHE()  : bool
headerJPEG()  : mixed
headerJPG()  : mixed
headerPDF()  : mixed
headerPNG()  : mixed
JSON()  : mixed
jsonStatus()  : mixed
printJsonAndExit()  : mixed
printJsonErrorAndContinue()  : mixed
printJsonErrorAndExit()  : mixed
printJsonFinalStatusMessage()  : mixed
Redirect()  : mixed
RedirectToMessagePage()  : mixed
ReturnTo()  : mixed
ReturnWhereComeFrom()  : mixed
SetHeader()  : mixed
setJSON()  : mixed

Methods

public static Cookie( $name,  $val) : mixed
Parameters
$name :
$val :
Return values
mixed

header301()

$code = 301; Use when the old page has been permanently moved and any future requests should be sent to the target page instead.

public static header301( $redirectTo) : mixed

PageRank may be transferred.

Parameters
$redirectTo :
Return values
mixed

header302()

$code = 302; Temporary redirect so page is only cached if indicated by a Cache-Control or Expires header field.

public static header302( $redirectTo) : mixed
Parameters
$redirectTo :
Return values
mixed

header303()

$code = 303; This method exists primarily to allow the output of a POST-activated script to redirect the user agent to a selected resource.

public static header303( $redirectTo) : mixed

The new URI is not a substitute reference for the originally requested resource and is not cached.

Parameters
$redirectTo :
Return values
mixed

header307()

$code = 307; Beware that when used after a form is submitted using POST, it would carry over the posted values to the next page, such if target.php contains a form processing script, it will process the submitted info again!

public static header307( $redirectTo) : mixed
Parameters
$redirectTo :
Return values
mixed

header404()

public static header404() : mixed
Return values
mixed

headerCACHE()

public static headerCACHE() : bool
Return values
bool

headerJPEG()

public static headerJPEG() : mixed
Return values
mixed

headerJPG()

public static headerJPG() : mixed
Return values
mixed

headerPDF()

public static headerPDF() : mixed
Return values
mixed

headerPNG()

public static headerPNG() : mixed
Return values
mixed

JSON()

public static JSON( $responseArray) : mixed
Parameters
$responseArray :
Return values
mixed

jsonStatus()

public static jsonStatus( $status) : mixed
Parameters
$status :
Return values
mixed

printJsonAndExit()

public static printJsonAndExit( $outputMessage) : mixed
Parameters
$outputMessage :
Return values
mixed

printJsonErrorAndContinue()

public static printJsonErrorAndContinue( $outputMessage) : mixed
Parameters
$outputMessage :
Return values
mixed

printJsonErrorAndExit()

public static printJsonErrorAndExit( $outputMessage) : mixed
Parameters
$outputMessage :
Return values
mixed

printJsonFinalStatusMessage()

public static printJsonFinalStatusMessage( $statusCode) : mixed
Parameters
$statusCode :
Return values
mixed

Redirect()

public static Redirect( $url) : mixed
Parameters
$url :
Return values
mixed

RedirectToMessagePage()

public static RedirectToMessagePage( $messageID) : mixed
Parameters
$messageID :
Return values
mixed

ReturnTo()

public static ReturnTo() : mixed
Return values
mixed

ReturnWhereComeFrom()

public static ReturnWhereComeFrom() : mixed
Return values
mixed

SetHeader()

public static SetHeader( $outputMessage) : mixed
Parameters
$outputMessage :
Return values
mixed

setJSON()

public static setJSON() : mixed
Return values
mixed

Search results