Datamanager 2 simple text widget

As with all subclasses, the actual initialization is done in the initialize() function, not in the constructor, to allow for error handling.

This widget supports all types which have a simple, plain text representation accessible though their value member.

Available configuration options: At the moment, none.

package midcom.helper.datamanager2

 Methods

_on_initialize ()

The initialization event handler post-processes the maxlength setting.

Returns

booleanIndicating Success

add_elements_to_form ($attributes)

Adds a simple single-line text form element at this time.

Parameters

$attributes

get_default ()

sync_type_with_widget ($results)

Parameters

$results

validate_number ($fields)

QF Validation callback used for number types.

It checks the number boundaries accordingly.

Parameters

$fields