Class jResponseXml

Description

XML response generator

Located in /core/response/jResponseXml.class.php (line 25)

jResponse
   |
   --jResponseXml
Variable Summary
string $contentTpl
boolean $sendXMLHeader
string $_charset
integer $_headSent
string $_type
Method Summary
jResponseXml __construct ()
void addCSSStyleSheet ( $src, [ $params = array()])
void addXSLStyleSheet ( $src, [ $params = array()])
boolean output ()
void outputErrors ()
void outputXmlHeader ()
Variables
jTpl $content = null (line 37)

the template container

  • access: public
string $contentTpl = '' (line 43)

selector of the template file

  • access: public
boolean $sendXMLHeader = TRUE (line 66)

say if the XML header have to be generated

Usefull if the XML string to output already contain the XML header

  • since: 1.0.3
  • access: public
string $_charset (line 49)

The charset

  • access: protected
integer $_headSent = 0 (line 58)

says what part of the html head has been send

  • access: protected
string $_type = 'xml' (line 30)

Id of the response

  • access: protected

Redefinition of:
jResponse::$_type
ident of the response type

Inherited Variables

Inherited from jResponse

jResponse::$_acceptSeveralErrors
jResponse::$_errorMessages
jResponse::$_httpHeaders
jResponse::$_httpHeadersSent
jResponse::$_httpStatusCode
jResponse::$_httpStatusMsg
Methods
Constructor __construct (line 72)

constructor..

jResponseXml __construct ()

Redefinition of:
jResponse::__construct()
constructor
addCSSStyleSheet (line 140)

to add a link to css stylesheet

  • since: 1.0b1
  • access: public
void addCSSStyleSheet ( $src, [ $params = array()])
  • $src
  • $params
addXSLStyleSheet (line 150)

to add a link to an xsl stylesheet

  • since: 1.0b1
  • access: public
void addXSLStyleSheet ( $src, [ $params = array()])
  • $src
  • $params
output (line 83)

generate the xml content and send it to the browser

  • return: true if ok
  • access: public
boolean output ()

Redefinition of:
jResponse::output()
Send the response in the correct format.
outputErrors (line 116)

output errors if any

  • access: public
void outputErrors ()

Redefinition of:
jResponse::outputErrors()
Send a response with only error messages which appears during the action
outputXmlHeader (line 159)

output all processing instructions (stylesheet, xsl..) before the XML content

  • access: protected
void outputXmlHeader ()

Inherited Methods

Inherited From jResponse

jResponse::__construct()
jResponse::acceptSeveralErrors()
jResponse::addHttpHeader()
jResponse::clearHttpHeaders()
jResponse::getFormatType()
jResponse::getType()
jResponse::hasErrors()
jResponse::output()
jResponse::outputErrors()
jResponse::sendHttpHeaders()
jResponse::setHttpStatus()

Documentation generated on Wed, 07 Sep 2011 13:47:50 +0200 by phpDocumentor 1.4.3