Overview

Namespaces

  • Nethgui
    • Adapter
    • Authorization
    • Component
    • Controller
      • Collection
      • Table
    • Exception
    • Log
    • Model
    • Module
      • Help
      • Notification
    • Renderer
    • Serializer
    • System
    • Test
      • Tool
      • Unit
        • Nethgui
          • Adapter
            • ParameterSet
          • Authorization
          • Log
          • Module
            • Notification
          • Renderer
          • Serializer
          • System
          • Utility
          • View
        • Test
          • Tool
    • Utility
    • View
    • Widget
      • Xhtml
  • None
  • Test
    • Tool

Classes

  • AbstractRenderer
  • Json
  • ReadonlyView
  • TemplateRenderer
  • Xhtml

Interfaces

  • WidgetFactoryInterface
  • WidgetInterface
  • Overview
  • Namespace
  • Class
  • Deprecated

Class Json

Transform a view in a JSON string

Nethgui\Renderer\ReadonlyView implements Nethgui\View\ViewInterface, Nethgui\Log\LogConsumerInterface
Extended by Nethgui\Renderer\AbstractRenderer
Extended by Nethgui\Renderer\Json
Namespace: Nethgui\Renderer
Author: Davide Principi davide.principi@nethesis.it
Since: 1.0
Located at Renderer/Json.php
Methods summary
public array
# traversableToArray( Traversable $value )

Convert a \Traversable object to a PHP array

Convert a \Traversable object to a PHP array

Parameters

$value

Returns

array
public string
# render( )

Render the object as a string

Render the object as a string

Returns

string

See

Nethgui\Renderer\Json::getContentType()
Nethgui\Renderer\Json::getCharset()

Api

public string
# getCharset( )

Get the view content charset enconding

Get the view content charset enconding

EG: UTF-8

Returns

string

Api

public string
# getContentType( )

Get the view content mime type

Get the view content mime type

EG: application/json

Returns

string

Api

Methods inherited from Nethgui\Renderer\AbstractRenderer
hashToDatasource()
Methods inherited from Nethgui\Renderer\ReadonlyView
__construct(), copyFrom(), getClientEventTarget(), getCommandList(), getIterator(), getLog(), getModule(), getModulePath(), getModuleUrl(), getPathUrl(), getSiteUrl(), getTargetFormat(), getTemplate(), getTranslator(), getUniqueId(), hasCommandList(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), resolvePath(), setLog(), setTemplate(), spawnView(), translate()
Constants inherited from Nethgui\View\ViewInterface
TARGET_JSON, TARGET_XHTML
Properties inherited from Nethgui\Renderer\ReadonlyView
$view
Nethgui Framework API documentation generated by ApiGen