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 21)

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

list of array values you want to put in attributes

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

list of array values you want to put in elements

  • access: public
array $data (line 32)

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

  • access: public
mixed $prologSent = false (line 77)
  • access: protected
string $resNs = "http://dummy/rdf#" (line 48)

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

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

namespace prefix

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

uri prefix of all ressources

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

uri of the root sequence

  • access: public
string $template (line 42)

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
mixed $_acceptSeveralErrors = true (line 26)
  • access: protected

Redefinition of:
jResponse::$_acceptSeveralErrors
string $_type = 'rdf' (line 25)
  • access: protected

Redefinition of:
jResponse::$_type

Inherited Variables

Inherited from jResponse

jResponse::$_httpHeaders
jResponse::$_httpHeadersSent
jResponse::$_httpStatusCode
jResponse::$_httpStatusMsg
Methods
generateContent (line 96)
  • access: protected
void generateContent ()
output (line 79)
  • access: public
void output ()

Redefinition of:
jResponse::output()
Send the response in the correct format.
outputErrors (line 136)
  • access: public
void outputErrors ()

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

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 Thu, 19 Sep 2013 00:06:48 +0200 by phpDocumentor 1.4.3