$element->setValue() – Utility function to set or store values from common tag types.


$element->setValue ( mixed $value )


This is used to set the values of form elements, results depend on the type of element

  • text,password inputs, buttons Fills in the value attribute

  • checkboxs / radio buttons adds a checked tag to the matching element

  • textarea fills in the text area content

  • checkbox with arrays adds checked to the matching elements

  • selects adds selected to the


  • $value The value to assign a form element, (use arrays for multiple selects or checkbox groups)


throws no exceptions thrown


This function can not be called statically.

Class constructor (Previous) Utility function equivilant to HTML_Select - loadArray ** (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.