Renderer
[ class tree: Renderer ] [ index: Renderer ] [ all elements ]

Class: Formagic_Renderer_Array

Source Location: /Renderer/Array.php

Class Overview


Returns form items in array form to be processed by custom display manager


Author(s):

  • Florian Sonnenburg

Version:

  • $Id: Array.php 126 2011-05-18 18:41:58Z meweasle $

Copyright:

  • Copyright (c) 2007-2009 Florian Sonnenburg

Implements interfaces:

Variables

Methods



Class Details

[line 36]
Returns form items in array form to be processed by custom display manager



Tags:

author:  Florian Sonnenburg
version:  $Id: Array.php 126 2011-05-18 18:41:58Z meweasle $
copyright:  Copyright (c) 2007-2009 Florian Sonnenburg


[ Top ]


Class Variables

$_fmFields =  ''

[line 54]

Internal string cache for hidden Formagic items.



Tags:

access:  private

Type:   string


[ Top ]

$_hasErrors =  false

[line 48]

True if any item's validation failed. Will be added to the result array.



Tags:

access:  private

Type:   boolean


[ Top ]

$_result = array()

[line 42]

Result array



Tags:

access:  private

Type:   array


[ Top ]



Class Methods


method render [line 62]

array render( $form, Formagic $Formagic)

Returns array with all neccessary item information.



Tags:

return:  The array containing all items and errors.
access:  public



Implementation of:
Formagic_Renderer_Interface::render()
Renders form item information into a specific data format.

Parameters:

Formagic   $Formagic   Formagic main object.
Formagic   $form  

[ Top ]

method _assembleData [line 81]

void _assembleData( $container)

Collects item information to be put into the result array.

Iterates over $container and descends recursively into nested sub-containers.




Tags:

access:  private


Parameters:

Formagic_Item_Container   $container   Item container.

[ Top ]

method _sanitize [line 142]

mixed _sanitize( mixed $value)

Sanitizes a userland value.



Tags:

return:  Sanitized value
access:  protected


Parameters:

mixed   $value   Value

[ Top ]


Documentation generated on Sun, 22 May 2011 22:40:06 +0200 by phpDocumentor 1.4.3