Class SOAView

Description

Class SOAView is used to render string based data structures.

A SOAView displays structured data like JSON literals, XML-trees or CSV output to be further handled by the client. SOAView is especially used with Ajax-like User Interface Frameworks that rely on structured data response.

For every type of output renderer you want to support you have to define the rendering method here.

  • todo: standard xml renderer
  • todo: action script syntax renderer
  • todo: character separated table renderer

Located in /soaview.php (line 24)

PHOOL
   |
   --HTTPResponse
      |
      --View
         |
         --SOAView
Variable Summary
string $renderer
Method Summary
SOAView SOAView (Forward &$input)
HTTPResponse render ()
void render_json (array $data)
void render_serialize (array $data)
void render_wddx (array $data)
void set_renderer (string $renderer)
Variables
Methods
Constructor SOAView (line 37)

Construct a SOAView object

SOAView SOAView (Forward &$input)
render (line 58)

Render any internal data container into a SOAView

HTTPResponse render ()

Redefinition of:
View::render()
Create a valid HTTPResponse from buffered output and return it
render_json (line 84)

Render an output container in JSON syntax

void render_json (array $data)
  • array $data: data to render
render_serialize (line 116)

Render an output container with PHP's serialize function

void render_serialize (array $data)
  • array $data: data to render
render_wddx (line 100)

Render an output container as WDDX package

void render_wddx (array $data)
  • array $data: data to render
set_renderer (line 47)

Set a specific renderer

void set_renderer (string $renderer)
  • string $renderer: renderer name

Inherited Methods

Inherited From View

View::View()
View::render()

Inherited From HTTPResponse

HTTPResponse::HTTPResponse()
HTTPResponse::appendContent()
HTTPResponse::send()
HTTPResponse::sendBody()
HTTPResponse::sendHeaders()
HTTPResponse::sendStatus()
HTTPResponse::setContent()
HTTPResponse::setEncoding()
HTTPResponse::setHeader()
HTTPResponse::setStatus()
HTTPResponse::__tostring()

Inherited From PHOOL

PHOOL::PHOOL()
PHOOL::debug()
PHOOL::error()
PHOOL::get_errors()
PHOOL::handle_error()
PHOOL::has_error()
PHOOL::log_error()
PHOOL::set_debug()
PHOOL::set_logdir()
PHOOL::set_loglevel()
Class Constants

Inherited Constants

Inherited from PHOOL

PHOOL::ERROR
PHOOL::UNKNOWN
PHOOL::USER
PHOOL::WARNING

Documentation generated on Tue, 12 May 2009 23:09:42 +0200 by phpDocumentor 1.4.1