\JFormHelper
JForm's helper class.
Provides a storage for filesystem's paths where JForm's entities reside and methods for creating those entities.
Also stores objects with entities' prototypes for further reusing.
Synopsis
class JFormHelper
{
- // methods
- public static mixed loadFieldType()
- public static mixed loadRuleType()
- protected static mixed loadType()
- public static mixed loadFieldClass()
- public static mixed loadRuleClass()
- protected static mixed loadClass()
- public static array addFieldPath()
- public static array addFormPath()
- public static array addRulePath()
- protected static array addPath()
Hierarchy
Extended by
Members
protected
- $entities
—
array
Static array of JForm's entity objects for re-use. - $paths
—
array
Array with paths where entities(field, rule, form) can be found.
Methods
protected
- addPath() — Method to add a path to the list of include paths for one of the form's entities.
- loadClass() — Load a class for one of the form's entities of a particular type.
- loadType() — Method to load a form entity object given a type.
public
- addFieldPath() — Method to add a path to the list of field include paths.
- addFormPath() — Method to add a path to the list of form include paths.
- addRulePath() — Method to add a path to the list of rule include paths.
- loadFieldClass() — Attempt to import the JFormField class file if it isn't already imported.
- loadFieldType() — Method to load a form field object given a type.
- loadRuleClass() — Attempt to import the JFormRule class file if it isn't already imported.
- loadRuleType() — Method to load a form rule object given a type.