Documentation

Turba_Form_Contact extends Turba_Form_ContactBase
in package

Form for displaying a contact

Tags
category

Horde

copyright

2000-2017 Horde LLC

license

http://www.horde.org/licenses/apache ASL

Table of Contents

__construct()  : mixed
getRenderer()  : object
Returns a custom renderer.
_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.

Methods

__construct()

public __construct(array<string|int, mixed> $vars, Turba_Object $contact[, mixed $tabs = true ][, mixed $title = null ]) : mixed
Parameters
$vars : array<string|int, mixed>

Array of form variables

$contact : Turba_Object
$tabs : mixed = true
$title : mixed = null
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.

_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