HTML_QuickForm::registerElementType() – Registers a new element type


require_once 'HTML/QuickForm.php';

void HTML_QuickForm::registerElementType ( string $typeName , string $include , string $className )


Registers a new element type. After that, elements of this type may be created via createElement() and added to form via addElement().


string $typeName

Name of element type

string $include

Include path for element type

string $className

Element class name


throws no exceptions thrown


since 1.0

This function can be called statically.

Checks whether the form element type is supported (Previous) Removes an element (Next)
Last updated: Sun, 22 Jan 2017 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.