Previous Page
setAttribs()

Solar_Form
setElement()

Next Page
setElements()

setElement()

public void setElement ( string $name, array $info, string $array default NULL )

Sets one element in the form.

Parameters

  • (string) $name: The element name to set or add; overrides $info['name'].
  • (array) $info: Element information using the same keys as in Solar_Form::$_default_element.
  • (string) $array: Rename the element as a key in this array.

Returns

  • (void)

Description

Sets one element in the form.

Appends if element does not exist.