class TagField extends JFormFieldList

List of Tags field.

Properties

string $type A flexible tag list that respects access controls
boolean $isNested Flag to work with nested tag field

Methods

addOption( string $text, array $attributes = array())

Method to add an option to the list field.

mixed
__get( string $name)

Method to get certain otherwise inaccessible properties from the form field object.

__construct()

Constructor

boolean
isNested()

Determine if the field has to be tagnested

boolean
allowCustom()

Determines if the field allows or denies custom values

Details

JFormFieldList addOption( string $text, array $attributes = array())

Method to add an option to the list field.

Parameters

string $text Text/Language variable of the option.
array $attributes Array of attributes ('name' => 'value' format)

Return Value

JFormFieldList For chaining.

mixed __get( string $name)

Method to get certain otherwise inaccessible properties from the form field object.

Parameters

string $name The property name for which to get the value.

Return Value

mixed The property value or null.

__construct()

Constructor

boolean isNested()

Determine if the field has to be tagnested

Return Value

boolean

boolean allowCustom()

Determines if the field allows or denies custom values

Return Value

boolean