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

jResponse
   |
   --jResponseRdf
Variable Summary
string $asAttribute
string $asElement
array $datas
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 69)

list of array values you want to put in attributes

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

list of array values you want to put in elements

  • access: public
array $datas (line 33)

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

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

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

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

namespace prefix

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

uri prefix of all ressources

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

uri of the root sequence

  • access: public
string $template (line 43)

a template selector for complex RDF content.

keep empty if you have a simple array of array in $datas : 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 27)
  • access: protected

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

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

Inherited Variables

Inherited from jResponse

jResponse::$_errorMessages
jResponse::$_httpHeaders
jResponse::$_httpHeadersSent
jResponse::$_httpStatusCode
jResponse::$_httpStatusMsg
Methods
generateContent (line 97)
  • access: protected
void generateContent ()
output (line 80)
  • access: public
void output ()

Redefinition of:
jResponse::output()
Send the response in the correct format.
outputErrors (line 137)
  • 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 Wed, 07 Sep 2011 13:47:47 +0200 by phpDocumentor 1.4.3