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

Class: SmartClient_Helper_ScForms

Source Location: /ScForms.php

Class Overview

Zend_View_Helper_Action
   |
   --SmartClient_Helper_ScGeneral
      |
      --SmartClient_Helper_ScForms

Smart Client Forms Helper


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: SmartClient_Helper_ScGeneral

SmartClient_Helper_ScGeneral::__construct()
Set $remove_quotes_str
SmartClient_Helper_ScGeneral::addQuotesStr()
Add QuotesStr to String
SmartClient_Helper_ScGeneral::includeScripts()
Create the scripts for include
SmartClient_Helper_ScGeneral::removeQuotes()
Remove quotes from specific vars that are not supposed to be quoted using the $removeQuotesStr var
SmartClient_Helper_ScGeneral::ScGeneral()
Return instance
SmartClient_Helper_ScGeneral::setView()
Sets the view field

Class Details

[line 22]
Smart Client Forms Helper



Tags:

uses:  viewHelper - SmartClient


[ Top ]


Class Variables

$view =

[line 28]



Tags:

access:  public

Type:   Zend_View_Interface
Overrides:   Array


[ Top ]

$_defaultTitleOrientation =  'left'

[line 38]



Tags:

var:  Default title orientation for the form fields
access:  protected

Type:   string


[ Top ]

$_fields =

[line 33]



Tags:

access:  protected

Type:   array


[ Top ]



Class Methods


method addButton [line 69]

void addButton( mixed $data, [ $click = ''], [array $options = ''])

Add Button



Tags:

access:  public


Parameters:

mixed   $data   If string, it must be the title of the field. If array, them we will loop on it
array   $options   Additional options
   $click  

[ Top ]

method addCheckboxField [line 115]

void addCheckboxField( mixed $data, [string $title = ''], [boolean $checked = false], [array $options = ''])

Add Checkbox Field



Tags:

access:  public


Parameters:

mixed   $data   If string, it must be the name of the field. If array, them we will loop on it
string   $title   Title of the field
boolean   $checked   Default value
array   $options   Additional options

[ Top ]

method addDateField [line 166]

void addDateField( mixed $data, [string $title = ''], [string $defaultValue = ''], [boolean $useTextField = false], [string $dateDisplayFormat = ''], [string $startDate = ''], [string $endDate = ''], [array $options = ''])

Add Date Field



Tags:

access:  public


Parameters:

mixed   $data   If string, it must be the name of the field. If array, them we will loop on it
string   $title   Title of the field
string   $defaultValue   Default value
boolean   $useTextField   Use a text field
string   $dateDisplayFormat   Display format
string   $startDate   Start date
string   $endDate   End date
array   $options   Additional options

[ Top ]

method addHeader [line 215]

void addHeader( mixed $data, [array $options = ''])

Add Header



Tags:

access:  public


Parameters:

mixed   $data   If string, it must be the value of the field. If array, them we will loop on it
array   $options   Additional options

[ Top ]

method addHiddenField [line 259]

void addHiddenField( mixed $data, [string $defaultValue = ''], [array $options = ''])

Add Hidden Field



Tags:

access:  public


Parameters:

mixed   $data   If string, it must be the name of the field. If array, them we will loop on it
string   $defaultValue   Default value for the hidden field
array   $options   Additional options

[ Top ]

method addPasswordField [line 358]

void addPasswordField( mixed $data, [string $title = ''], [string $defaultValue = ''], [array $options = ''])

Add Password Field



Tags:

access:  public


Parameters:

mixed   $data   If string, it must be the name of the field. If array, them we will loop on it
string   $title   Title of the field
string   $defaultValue   Default value for the text area
array   $options   Additional options

[ Top ]

method addSection [line 459]

void addSection( mixed $data, [string $defaultValue = ''], [array $itemIds = ''], [boolean $sectionExpanded = true], [array $options = ''])

Add Section



Tags:

access:  public


Parameters:

mixed   $data   If string, it must be a unique value for this section. If array, them we will loop on it
string   $defaultValue   Title of the section
array   $itemIds   Fields on this section
boolean   $sectionExpanded   True if section is expanded
array   $options   Additional options

[ Top ]

method addSelectField [line 511]

void addSelectField( mixed $data, [string $title = ''], [array $valueMap = ''], [mixed $defaultValue = ''], [array $options = ''])

Add Select Field



Tags:

access:  public


Parameters:

mixed   $data   If string, it must be the name of the field. If array, them we will loop on it
string   $title   Title of the field
array   $valueMap   Array containing the values for this select field
mixed   $defaultValue   Default value
array   $options   Additional options

[ Top ]

method addSliderField [line 408]

void addSliderField( mixed $data, [string $title = ''], [ $minValue = ''], [ $maxValue = ''], [ $numValues = ''], [float $defaultValue = ''], [array $options = ''], float $min, float $max, float $step)

Add Slider Field



Tags:

access:  public


Parameters:

mixed   $data   If string, it must be the name of the field. If array, them we will loop on it
string   $title   Title of the field
float   $min   Min value
float   $max   Max value
float   $step   Step value
float   $defaultValue   Default value
array   $options   Additional options
   $minValue  
   $maxValue  
   $numValues  

[ Top ]

method addSpinnerField [line 308]

void addSpinnerField( mixed $data, [string $title = ''], [float $min = ''], [float $max = ''], [float $step = ''], [float $defaultValue = ''], [array $options = ''])

Add Spinner Field



Tags:

access:  public


Parameters:

mixed   $data   If string, it must be the name of the field. If array, them we will loop on it
string   $title   Title of the field
float   $min   Min value
float   $max   Max value
float   $step   Step value
float   $defaultValue   Default value
array   $options   Additional options

[ Top ]

method addSubmitButton [line 557]

void addSubmitButton( mixed $data, [array $options = ''])

Add Submit Button



Tags:

access:  public


Parameters:

mixed   $data   If string, it must be the value of the field. If array, them we will loop on it
array   $options   Additional options

[ Top ]

method addTextArea [line 602]

void addTextArea( mixed $data, [string $title = ''], [string $defaultValue = ''], [array $options = ''])

Add Text Area Field



Tags:

access:  public


Parameters:

mixed   $data   If string, it must be the name of the field. If array, them we will loop on it
string   $title   Title of the field
string   $defaultValue   Default value for the text area
array   $options   Additional options

[ Top ]

method addTextField [line 649]

void addTextField( mixed $data, [string $title = ''], [string $defaultValue = ''], [array $options = ''])

Add Text Field



Tags:

access:  public


Parameters:

mixed   $data   If string, it must be the name of the field. If array, them we will loop on it
string   $title   Title of the field
string   $defaultValue   Default value for the text area
array   $options   Additional options

[ Top ]

method addTimeField [line 696]

void addTimeField( mixed $data, [string $title = ''], [string $defaultValue = ''], [array $options = ''])

Add Time Field



Tags:

access:  public


Parameters:

mixed   $data   If string, it must be the name of the field. If array, them we will loop on it
string   $title   Title of the field
string   $defaultValue   Default value
array   $options   Additional options

[ Top ]

method clearFields [line 753]

void clearFields( )

Clear fields

Clear Fields array




Tags:

access:  public


[ Top ]

method create [line 770]

string create( mixed $data, [string $action = ''], [array $options = ''])

Create

Create the dynamic form




Tags:

access:  public


Parameters:

mixed   $data   If string, it must be the id of the form. If array, them we will loop through it
string   $action   Action of the form
array   $options   Additional options

[ Top ]

method getFields [line 741]

array getFields( )

Get Fields

Return the current fields array




Tags:

access:  public


[ Top ]

method ScForms [line 45]

void ScForms( )

Return instance



Tags:

access:  public


[ Top ]

method setView [line 56]

void setView( $view)

Sets the view field



Tags:

access:  public


Overrides SmartClient_Helper_ScGeneral::setView() (Sets the view field)

Parameters:

$view   $view   Zend_View_Interface

[ Top ]


Documentation generated on Mon, 20 Jul 2009 16:51:57 -0300 by phpDocumentor 1.4.1