FormHelper
class FormHelper
Form's helper class.
Provides a storage for filesystem's paths where Form's entities reside and methods for creating those entities. Also stores objects with entities' prototypes for further reusing.
Methods
Method to load a form field object given a type.
Method to load a form rule object given a type.
Attempt to import the JFormField class file if it isn't already imported.
Attempt to import the JFormRule class file if it isn't already imported.
Method to add a path to the list of field include paths.
Method to add a path to the list of form include paths.
Method to add a path to the list of rule include paths.
Method to add a namespace prefix to the list of field lookups.
Method to add a namespace to the list of form lookups.
Method to add a namespace to the list of rule lookups.
Parse the show on conditions
Details
static
FormField|boolean
loadFieldType(
string $type,
boolean $new = true)
Method to load a form field object given a type.
static
FormRule|boolean
loadRuleType(
string $type,
boolean $new = true)
Method to load a form rule object given a type.
static
string|boolean
loadFieldClass(
string $type)
Attempt to import the JFormField class file if it isn't already imported.
You can use this method outside of JForm for loading a field for inheritance or composition.
static
string|boolean
loadRuleClass(
string $type)
Attempt to import the JFormRule class file if it isn't already imported.
You can use this method outside of JForm for loading a rule for inheritance or composition.
static
array
addFieldPath(
mixed $new = null)
Method to add a path to the list of field include paths.
static
array
addFormPath(
mixed $new = null)
Method to add a path to the list of form include paths.
static
array
addRulePath(
mixed $new = null)
Method to add a path to the list of rule include paths.
static
array
addFieldPrefix(
mixed $new = null)
Method to add a namespace prefix to the list of field lookups.
static
array
addFormPrefix(
mixed $new = null)
Method to add a namespace to the list of form lookups.