Class FOFViewJson
FrameworkOnFramework JSON View class. Renders the data as a JSON object or array. It can optionally output HAL links as well.
- FOFUtilsObject
- FOFView
- FOFViewRaw
- FOFViewHtml
- FOFViewJson
Copyright: Copyright (C) 2010-2016 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved.
License: General Public License version 2 or later; see LICENSE.txt
Since: 2.0
Located at fof/view/json.php
Methods summary
public
|
|
protected
boolean
|
|
protected
boolean
|
|
protected
|
#
_createDocumentWithHypermedia( array $data,
Creates a FOFHalDocument using the provided data |
protected
string
|
|
protected
|
#
_getPrototypeURIForPagination( )
Returns a JUri instance with a prototype URI used as the base for the other URIs created by the JSON renderer |
Methods inherited from FOFViewHtml
postRender()
,
preRender()
,
setPageTitle()
Methods inherited from FOFViewRaw
display()
,
getLists()
,
getPerms()
,
hasAjaxOrderingSupport()
,
onAdd()
,
onBrowse()
,
onEdit()
Methods inherited from FOFView
_addPath()
,
_createFileName()
,
_setPath()
,
addHelperPath()
,
addTemplatePath()
,
assign()
,
assignRef()
,
escape()
,
findRenderer()
,
get()
,
getLayout()
,
getLayoutTemplate()
,
getModel()
,
getName()
,
getRenderer()
,
getViewOptionAndName()
,
loadAnyTemplate()
,
loadHelper()
,
loadTemplate()
,
registerRenderer()
,
setEscape()
,
setLayout()
,
setLayoutExt()
,
setModel()
,
setPostRender()
,
setPreRender()
,
setRenderer()
Methods inherited from FOFUtilsObject
__toString()
,
def()
,
getError()
,
getErrors()
,
getProperties()
,
set()
,
setError()
,
setProperties()
Magic methods summary
Properties summary
public
boolean
|
$useHypermedia |
#
When set to true we'll add hypermedia to the output, implementing the HAL specification (http://stateless.co/hal_specification.html) |
Properties inherited from FOFViewHtml
$defaultPageTitle
,
$setFrontendPageTitle
Properties inherited from FOFViewRaw
Properties inherited from FOFView
$_basePath
,
$_charset
,
$_defaultModel
,
$_escape
,
$_layout
,
$_layoutExt
,
$_layoutTemplate
,
$_models
,
$_name
,
$_output
,
$_path
,
$_template
,
$config
,
$doPostRender
,
$doPreRender
,
$input
,
$rendererObject
,
$renderers