Class jResponseRdf

Description

output RDF content.

This is a basic RDF generator, which generates content from an array of data.

Located in /core/response/jResponseRdf.class.php (line 20)

jResponse
   |
   --jResponseRdf
Variable Summary
string $asAttribute
string $asElement
array $data
string $resNs
string $resNsPrefix
string $resUriPrefix
string $resUriRoot
string $template
string $_type
Method Summary
void generateContent ()
void output ()
Variables
string $asAttribute = array() (line 66)

list of array values you want to put in attributes

  • access: public
string $asElement = array() (line 71)

list of array values you want to put in elements

  • access: public
array $data (line 30)

List of object or array, which will be transform into RDF content

  • access: public
string $resNs = "http://dummy/rdf#" (line 46)

namespace of the attributes and elements that will content your data.

  • access: public
string $resNsPrefix = 'row' (line 51)

namespace prefix

  • access: public
string $resUriPrefix = "urn:data:row:" (line 56)

uri prefix of all ressources

  • access: public
string $resUriRoot = "urn:data:row" (line 61)

uri of the root sequence

  • access: public
string $template (line 40)

a template selector for complex RDF content.

keep empty if you have a simple array of array in $data : RDF content will be generated by a simple generator. if you specify a template, you don't have to fill other properties (except data)

  • access: public
string $_type = 'rdf' (line 24)
  • access: protected

Redefinition of:
jResponse::$_type

Inherited Variables

Inherited from jResponse

jResponse::$forcedHttpVersion
jResponse::$httpVersion
jResponse::$_httpHeaders
jResponse::$_httpHeadersSent
jResponse::$_httpStatusCode
jResponse::$_httpStatusMsg
jResponse::$_outputOnlyHeaders
Methods
generateContent (line 97)
  • access: protected
void generateContent ()
output (line 73)
  • access: public
void output ()

Redefinition of:
jResponse::output()
Send the response in the correct format. If errors or exceptions appears during this method, outputErrors will be called. So the the content should be generated using the output buffer if errors can be appeared during this generation. Be care of http headers.

Inherited Methods

Inherited From jResponse

jResponse::__construct()
jResponse::addHttpHeader()
jResponse::cleanCacheHeaders()
jResponse::clearHttpHeaders()
jResponse::getFormatType()
jResponse::getType()
jResponse::isValidCache()
jResponse::output()
jResponse::outputErrors()
jResponse::sendHttpHeaders()
jResponse::setExpires()
jResponse::setHttpStatus()
jResponse::setLifetime()
jResponse::_checkRequestType()
jResponse::_normalizeDate()

Documentation generated on Mon, 26 Oct 2015 21:55:41 +0100 by phpDocumentor 1.4.3