Overview

Packages

  • Form
  • None

Classes

  • Horde_Form
  • Horde_Form_Action
  • Horde_Form_Action_conditional_enable
  • Horde_Form_Action_conditional_setvalue
  • Horde_Form_Action_ConditionalEnable
  • Horde_Form_Action_ConditionalSetValue
  • Horde_Form_Action_reload
  • Horde_Form_Action_setcursorpos
  • Horde_Form_Action_submit
  • Horde_Form_Action_sum_fields
  • Horde_Form_Action_updatefield
  • Horde_Form_Renderer
  • Horde_Form_Translation
  • Horde_Form_Type
  • Horde_Form_Type_address
  • Horde_Form_Type_addresslink
  • Horde_Form_Type_assign
  • Horde_Form_Type_boolean
  • Horde_Form_Type_captcha
  • Horde_Form_Type_category
  • Horde_Form_Type_cellphone
  • Horde_Form_Type_colorpicker
  • Horde_Form_Type_countedtext
  • Horde_Form_Type_country
  • Horde_Form_Type_creditcard
  • Horde_Form_Type_date
  • Horde_Form_Type_datetime
  • Horde_Form_Type_dblookup
  • Horde_Form_Type_description
  • Horde_Form_Type_email
  • Horde_Form_Type_emailConfirm
  • Horde_Form_Type_enum
  • Horde_Form_Type_figlet
  • Horde_Form_Type_file
  • Horde_Form_Type_header
  • Horde_Form_Type_hourminutesecond
  • Horde_Form_Type_image
  • Horde_Form_Type_int
  • Horde_Form_Type_intlist
  • Horde_Form_Type_invalid
  • Horde_Form_Type_ip6address
  • Horde_Form_Type_ipaddress
  • Horde_Form_Type_keyval_multienum
  • Horde_Form_Type_link
  • Horde_Form_Type_longtext
  • Horde_Form_Type_matrix
  • Horde_Form_Type_mlenum
  • Horde_Form_Type_monthdayyear
  • Horde_Form_Type_monthyear
  • Horde_Form_Type_multienum
  • Horde_Form_Type_number
  • Horde_Form_Type_obrowser
  • Horde_Form_Type_octal
  • Horde_Form_Type_password
  • Horde_Form_Type_passwordconfirm
  • Horde_Form_Type_pgp
  • Horde_Form_Type_phone
  • Horde_Form_Type_radio
  • Horde_Form_Type_selectfiles
  • Horde_Form_Type_set
  • Horde_Form_Type_smime
  • Horde_Form_Type_sorter
  • Horde_Form_Type_sound
  • Horde_Form_Type_spacer
  • Horde_Form_Type_stringarray
  • Horde_Form_Type_stringlist
  • Horde_Form_Type_tableset
  • Horde_Form_Type_text
  • Horde_Form_Type_time
  • Horde_Form_Variable
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Form_Action

The Horde_Form_Action class provides an API for adding actions to Horde_Form variables.

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Direct known subclasses

Horde_Form_Action_conditional_enable, Horde_Form_Action_conditional_setvalue, Horde_Form_Action_ConditionalEnable, Horde_Form_Action_ConditionalSetValue, Horde_Form_Action_reload, Horde_Form_Action_setcursorpos, Horde_Form_Action_submit, Horde_Form_Action_sum_fields, Horde_Form_Action_updatefield
Package: Form
Author: Chuck Hagenbuch chuck@horde.org
Located at Horde/Form/Action.php
Methods summary
public
# Horde_Form_Action( mixed $params = null )
public
# getTrigger( )
public
# id( )
public
# getActionScript( mixed $form, mixed $renderer, mixed $varname )
public
# printJavaScript( )
public
# _printJavaScriptStart( )
public
# _printJavaScriptEnd( )
public
# getTarget( )
public
# setValues( mixed & $vars, mixed $sourceVal, mixed $index = null, mixed $arrayVal = false )
public Horde_Form_Action &
# factory( mixed $action, array $params = null )

Attempts to return a concrete Horde_Form_Action instance based on $form.

Attempts to return a concrete Horde_Form_Action instance based on $form.

Parameters

$action
<p>The type of concrete Horde_Form_Action subclass to return. If $action is an array, then we will look in $action[0]/lib/Form/Action/ for the subclass implementation named $action[1].php.</p>
$params
<p>A hash containing any additional configuration a form might need.</p>

Returns

Horde_Form_Action

The concrete Horde_Form_Action reference, or false on an error.

public Horde_Form_Action &
# singleton( mixed $action, array $params = null )

Attempts to return a reference to a concrete Horde_Form_Action instance based on $action. It will only create a new instance if no Horde_Form_Action instance with the same parameters currently exists.

Attempts to return a reference to a concrete Horde_Form_Action instance based on $action. It will only create a new instance if no Horde_Form_Action instance with the same parameters currently exists.

This should be used if multiple types of form renderers (and, thus, multiple Horde_Form_Action instances) are required.

This method must be invoked as: $var = &Horde_Form_Action::singleton()

Parameters

$action
<p>The type of concrete Horde_Form_Action subclass to return. The code is dynamically included. If $action is an array, then we will look in $action[0]/lib/Form/Action/ for the subclass implementation named $action[1].php.</p>
$params
<p>A hash containing any additional configuration a form might need.</p>

Returns

Horde_Form_Action

The concrete Horde_Form_Action reference, or false on an error.

Properties summary
public mixed $_id
#
public mixed $_params
#
public mixed $_trigger
# null
API documentation generated by ApiGen