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 AbstractRenderer

Transform a view into a string.

Module attributes are exposed as translated strings through the usual interface.

Nethgui\Renderer\ReadonlyView implements Nethgui\View\ViewInterface, Nethgui\Log\LogConsumerInterface
Extended by Nethgui\Renderer\AbstractRenderer

Direct known subclasses

Nethgui\Renderer\Json, Nethgui\Renderer\TemplateRenderer

Indirect known subclasses

Nethgui\Module\Help\Renderer, Nethgui\Renderer\Xhtml, Nethgui\Widget\Xhtml\ElementRenderer
Abstract
Namespace: Nethgui\Renderer
Author: Davide Principi davide.principi@nethesis.it
Since: 1.0
See: Nethgui\Renderer\WidgetInterface
See: http://en.wikipedia.org/wiki/Decorator_pattern
Api
Located at Renderer/AbstractRenderer.php
Methods summary
abstract public string
# render( )

Render the object as a string

Render the object as a string

Returns

string

See

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

Api

public static array
# hashToDatasource( array $H, boolean $sort = FALSE )

Convert the given hash to the array format accepted from UI widgets as "datasource".

Convert the given hash to the array format accepted from UI widgets as "datasource".

Deprecated here. Moved to \Nethgui\Widget\XhtmlWidget::hashToDatasource.

Deprecated

since 1.6

Parameters

$H
$sort
-- default FALSE

Returns

array

See

\Nethgui\Widget\XhtmlWidget::hashToDatasource

Api

abstract public string
# getContentType( )

Get the view content mime type

Get the view content mime type

EG: application/json

Returns

string

Api

abstract public string
# getCharset( )

Get the view content charset enconding

Get the view content charset enconding

EG: UTF-8

Returns

string

Api

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