Class JDocumentJSON

Description

JDocumentJSON class, provides an easy interface to parse and display JSON output

Located in /libraries/joomla/document/json/json.php (line 20)

JObject
   |
   --JDocument
      |
      --JDocumentJSON
Variable Summary
string $_name
Method Summary
JDocumentJSON __construct ([array $options = array()])
string getName ()
The render ([boolean $cache = false], [array $params = array()])
JDocumentJSON setName ([string $name = 'joomla'])
Variables
Methods
Constructor __construct (line 37)

Class constructor

  • since: 11.1
  • access: public
JDocumentJSON __construct ([array $options = array()])
  • array $options: Associative array of options

Redefinition of:
JDocument::__construct()
Class constructor.
getName (line 75)

Returns the document name

  • since: 11.1
  • access: public
string getName ()
render (line 58)

Render the document.

  • return: rendered data
  • since: 11.1
  • access: public
The render ([boolean $cache = false], [array $params = array()])
  • boolean $cache: If true, cache the output
  • array $params: Associative array of attributes

Redefinition of:
JDocument::render()
Outputs the document
setName (line 89)

Sets the document name

  • return: instance of $this to allow chaining
  • since: 11.1
  • access: public
JDocumentJSON setName ([string $name = 'joomla'])
  • string $name: Document name

Inherited Methods

Inherited From JDocument

JDocument::__construct()
JDocument::addScript()
JDocument::addScriptDeclaration()
JDocument::addStyleDeclaration()
JDocument::addStyleSheet()
JDocument::getBase()
JDocument::getBuffer()
JDocument::getCharset()
JDocument::getDescription()
JDocument::getDirection()
JDocument::getGenerator()
JDocument::getInstance()
JDocument::getLanguage()
JDocument::getLink()
JDocument::getMetaData()
JDocument::getMimeEncoding()
JDocument::getModifiedDate()
JDocument::getTitle()
JDocument::getType()
JDocument::loadRenderer()
JDocument::parse()
JDocument::render()
JDocument::setBase()
JDocument::setBuffer()
JDocument::setCharset()
JDocument::setDescription()
JDocument::setDirection()
JDocument::setGenerator()
JDocument::setLanguage()
JDocument::setLineEnd()
JDocument::setLink()
JDocument::setMetaData()
JDocument::setMimeEncoding()
JDocument::setModifiedDate()
JDocument::setTab()
JDocument::setTitle()
JDocument::setType()
JDocument::_getLineEnd()
JDocument::_getTab()

Inherited From JObject

JObject::__construct()
JObject::def()
JObject::get()
JObject::getError()
JObject::getErrors()
JObject::getProperties()
JObject::set()
JObject::setError()
JObject::setProperties()
JObject::toString()
JObject::__toString()

Documentation generated on Mon, 25 Jun 2012 13:56:02 -0500 by phpDocumentor 1.4.4