Turba_Form_EditContact
extends Turba_Form_ContactBase
in package
Form for editing/updating a contact.
Tags
Table of Contents
- $_contact : Turba_Object
- __construct() : mixed
- execute() : mixed
- getRenderer() : object
- Returns a custom renderer.
- renderActive() : mixed
- _addFields() : mixed
- Set up the Horde_Form fields for $contact's attributes.
- _getId() : string
- Converts a field name into an element ID as used in Horde_Form.
Properties
$_contact
protected
Turba_Object
$_contact
Methods
__construct()
public
__construct(array<string|int, mixed> $vars, Turba_Object $contact) : mixed
Parameters
- $vars : array<string|int, mixed>
- $contact : Turba_Object
Return values
mixed —execute()
public
execute() : mixed
Return values
mixed —getRenderer()
Returns a custom renderer.
public
getRenderer([array<string|int, mixed> $params = array() ]) : object
Parameters
- $params : array<string|int, mixed> = array()
-
A hash of renderer-specific parameters.
Return values
object —Horde_Form_Renderer The form renderer.
renderActive()
public
renderActive([mixed $renderer = null ][, mixed $vars = null ][, mixed $action = '' ][, mixed $method = 'get' ][, mixed $enctype = null ][, mixed $focus = true ]) : mixed
Parameters
- $renderer : mixed = null
- $vars : mixed = null
- $action : mixed = ''
- $method : mixed = 'get'
- $enctype : mixed = null
- $focus : mixed = true
Return values
mixed —_addFields()
Set up the Horde_Form fields for $contact's attributes.
protected
_addFields(Turba_Object $contact[, mixed $useTabs = true ]) : mixed
Parameters
- $contact : Turba_Object
-
The contact
- $useTabs : mixed = true
Return values
mixed —_getId()
Converts a field name into an element ID as used in Horde_Form.
protected
_getId(string $id) : string
Parameters
- $id : string
-
A form field name.
Return values
string —The ID for the form field.