Heratio Framework API Reference

sfFormField
in package

Table of Contents

Methods

__construct()  : mixed
__toString()  : mixed
String representation renders the widget.
getError()  : mixed
Get the error object.
getName()  : mixed
Get the field name.
getParent()  : mixed
Get the parent form.
getValue()  : mixed
Get the field value.
getWidget()  : mixed
Get the widget.
hasError()  : mixed
Check if the field has an error.
isHidden()  : mixed
Check if this field is hidden.
render()  : mixed
Render the widget HTML.
renderError()  : mixed
Render validation errors for this field.
renderHelp()  : mixed
Render help text for this field.
renderHiddenFields()  : mixed
Render hidden fields associated with this field.
renderLabel()  : mixed
Render the label for this field.
renderRow()  : mixed
Render a full form row (label + field + errors + help).

Methods

__construct()

public __construct(mixed $widget, mixed $widgetSchema, mixed $name[, mixed $value = null ][, mixed $error = null ][, mixed $parent = null ]) : mixed
Parameters
$widget : mixed
$widgetSchema : mixed
$name : mixed
$value : mixed = null
$error : mixed = null
$parent : mixed = null

__toString()

String representation renders the widget.

public __toString() : mixed

getError()

Get the error object.

public getError() : mixed

getName()

Get the field name.

public getName() : mixed

getParent()

Get the parent form.

public getParent() : mixed

getValue()

Get the field value.

public getValue() : mixed

getWidget()

Get the widget.

public getWidget() : mixed

hasError()

Check if the field has an error.

public hasError() : mixed

isHidden()

Check if this field is hidden.

public isHidden() : mixed

render()

Render the widget HTML.

public render([mixed $attributes = [] ]) : mixed
Parameters
$attributes : mixed = []

renderError()

Render validation errors for this field.

public renderError() : mixed

renderHelp()

Render help text for this field.

public renderHelp() : mixed

renderHiddenFields()

Render hidden fields associated with this field.

public renderHiddenFields() : mixed

renderLabel()

Render the label for this field.

public renderLabel([mixed $attributes = [] ][, mixed $label = null ]) : mixed
Parameters
$attributes : mixed = []
$label : mixed = null

renderRow()

Render a full form row (label + field + errors + help).

public renderRow([mixed $attributes = [] ][, mixed $label = null ]) : mixed
Parameters
$attributes : mixed = []
$label : mixed = null

        
On this page

Search results