[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Document/ -> JsonDocument.php (summary)

Joomla! Content Management System

Copyright: (C) 2009 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 115 lines (3 kb)
Included or required:0 times
Referenced: 2 times
Includes or requires: 0 files

Defines 1 class

JsonDocument:: (4 methods):
  __construct()
  render()
  getName()
  setName()


Class: JsonDocument  - X-Ref

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

__construct($options = array()   X-Ref
Class constructor

param: array  $options  Associative array of options

render($cache = false, $params = array()   X-Ref
Render the document.

param: boolean  $cache   If true, cache the output
param: array    $params  Associative array of attributes
return: string  The rendered data

getName()   X-Ref
Returns the document name

return: string

setName($name = 'joomla')   X-Ref
Sets the document name

param: string  $name  Document name
return: JsonDocument instance of $this to allow chaining



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer