Documentation

Turba_Form_AddContact extends Turba_Form_ContactBase
in package

Base class for forms dealing with a contact.

Table of Contents

$_contact  : Turba_Object
__construct()  : mixed
execute()  : mixed
getRenderer()  : object
Returns a custom renderer.
validate()  : 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

Methods

__construct()

public __construct(mixed $vars[, Turba_Object $contact = null ]) : mixed
Parameters
$vars : mixed
$contact : Turba_Object = null
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.

validate()

public validate([mixed $vars = null ][, mixed $canAutoFill = false ]) : mixed
Parameters
$vars : mixed = null
$canAutoFill : mixed = false
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.

Search results