\Turba_Form_Contact

Form for displaying a contact

Summary

Methods
Properties
Constants
getRenderer()
__construct()
No public properties found
No constants found
_addFields()
_getId()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getRenderer()

getRenderer(array  $params = array()) : object

Returns a custom renderer.

Parameters

array $params

A hash of renderer-specific parameters.

Returns

object —

Horde_Form_Renderer The form renderer.

__construct()

__construct(array  $vars, \Turba_Object  $contact,   $tabs = true,   $title = null) 

Parameters

array $vars

Array of form variables

\Turba_Object $contact
$tabs
$title

_addFields()

_addFields(\Turba_Object  $contact,   $useTabs = true) 

Set up the Horde_Form fields for $contact's attributes.

Parameters

\Turba_Object $contact

The contact

$useTabs

_getId()

_getId(string  $id) : string

Converts a field name into an element ID as used in Horde_Form.

Parameters

string $id

A form field name.

Returns

string —

The ID for the form field.