Contents |
The VF_Element class
Introduction
Description of the class
Class synopsis
VF_Element {
void __construct(string $name, string $label, int $type[, array $validationRules[, array $errorHandlers[, array $meta[, bool $justRender]]]])
string getRandomId($name)
boolean getValue(void)
boolean hasFields(void)
boolean isValid(void)
string toHtml([bool $isSubmitted[, bool $simpleLayout]])
string toJS(void)
}
Table of Contents
- VF_Element→__construct — Creates a new VF_Element object
- VF_Element→getRandomId - Generate a random ID
- VF_Element→getValue — Checks if there is a submitted value
- VF_Element→hasFields — Checks if current object has fields
- VF_Element→isValid — Checks if submitted fields are valid
- VF_Element→toHtml — Generates the HTML for this area and all (multi)fields inside it
- VF_Element→toJS — Generates the Javascript code for this element and all (multi)fields inside it

