The CForm class is used to handle web forms.
Methods
Method |
Description |
Check |
Checks the form required fields, date and time format and the
file type for validity. |
Mail |
This method is used to send the result via the e-mail using the mail
template. |
SetEvent |
Registers a new event in the Statistics module. |
GetByID |
Returns the selection from the database containing the form
parameters. |
GetBySID |
Returns the selection from the database containing the form
parameters. |
GetDataByID |
Returns arrays describing the form. |
GetFieldList |
Used to retrieve a list of the form questions and/or fields. |
GetPermission |
Returns the form access permission. |
GetResultAnswerArray |
Returns arrays containing information on the form questions,
fields and answers. |
GetStatusList |
Returns a list of the forms states. |
ShowResult |
Emits the HTML code displaying the result using either display or
print template. |
EditResult |
Displays the HTML code of a result editing page using the template
"Result editing". |
GetClosedFields |
Returns the HTML code consisting of the fields with ID's equal to
ID's of questions and fields passed as the second parameter. The fields have the
hidden attribute set. |