Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques statiques | |
static | loadFieldType ($type, $new=true) |
static | loadRuleType ($type, $new=true) |
static | loadFilterType ($type, $new=true) |
static | loadFieldClass ($type) |
static | loadRuleClass ($type) |
static | loadFilterClass ($type) |
static | addFieldPath ($new=null) |
static | addFormPath ($new=null) |
static | addRulePath ($new=null) |
static | addFilterPath ($new=null) |
static | addFieldPrefix ($new=null) |
static | addFormPrefix ($new=null) |
static | addRulePrefix ($new=null) |
static | addFilterPrefix ($new=null) |
static | parseShowOnConditions ($showOn, $formControl=null, $group=null) |
Fonctions membres protégées statiques | |
static | loadType ($entity, $type, $new=true) |
static | loadClass ($entity, $type) |
static | addPath ($entity, $new=null) |
static | addPrefix ($entity, $new=null) |
Attributs protégés statiques | |
static | $paths |
static | $prefixes = array('field' => array(), 'form' => array(), 'rule' => array(), 'filter' => array()) |
static | $entities = array('field' => array(), 'form' => array(), 'rule' => array(), 'filter' => array()) |
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.
|
static |
Method to add a path to the list of field include paths.
mixed | $new | A path or array of paths to add. |
Référencé par Form\addFieldPath().
|
static |
Method to add a namespace prefix to the list of field lookups.
mixed | $new | A namespaces or array of namespaces to add. |
Référencé par Form\syncPaths().
|
static |
Method to add a path to the list of filter include paths.
mixed | $new | A path or array of paths to add. |
Référencé par Form\addFilterPath().
|
static |
Method to add a namespace to the list of filter lookups.
mixed | $new | A namespace or array of namespaces to add. |
Référencé par Form\syncPaths().
|
static |
Method to add a path to the list of form include paths.
mixed | $new | A path or array of paths to add. |
Référencé par Form\addFormPath(), et FileModel\getForm().
|
static |
Method to add a namespace to the list of form lookups.
mixed | $new | A namespace or array of namespaces to add. |
Référencé par Form\syncPaths().
|
staticprotected |
Method to add a path to the list of include paths for one of the form's entities. Currently supported entities: field, rule and form. You are free to support your own in a subclass.
string | $entity | Form's entity name for which paths will be added. |
mixed | $new | A path or array of paths to add. |
Références $path.
|
staticprotected |
Method to add a namespace to the list of namespaces for one of the form's entities. Currently supported entities: field, rule and form. You are free to support your own in a subclass.
string | $entity | Form's entity name for which paths will be added. |
mixed | $new | A namespace or array of namespaces to add. |
Références $prefix.
|
static |
Method to add a path to the list of rule include paths.
mixed | $new | A path or array of paths to add. |
Référencé par Form\addRulePath(), et FieldModel\checkDefaultValue().
|
static |
Method to add a namespace to the list of rule lookups.
mixed | $new | A namespace or array of namespaces to add. |
Référencé par Form\syncPaths().
|
staticprotected |
Load a class for one of the form's entities of a particular type. Currently, it makes sense to use this method for the "field" and "rule" entities (but you can support more entities in your subclass).
string | $entity | One of the form entities (field or rule). |
string | $type | Type of an entity. |
Références $class, $i, $n, $name, $path, $prefix, $type, Path\find(), Normalise\toSpaceSeparated(), et StringHelper\ucfirst().
|
static |
Attempt to import the FormField class file if it isn't already imported. You can use this method outside of Form for loading a field for inheritance or composition.
string | $type | Type of a field whose class should be loaded. |
Références $type.
|
static |
Method to load a form field object given a type.
string | $type | The field type. |
boolean | $new | Flag to toggle whether we should get a new instance of the object. |
Références $type.
Référencé par Form\loadField().
|
static |
Attempt to import the FormFilter class file if it isn't already imported. You can use this method outside of Form for loading a filter for inheritance or composition.
string | $type | Type of a filter whose class should be loaded. |
Références $type.
|
static |
Method to load a form filter object given a type.
string | $type | The rule type. |
boolean | $new | Flag to toggle whether we should get a new instance of the object. |
Références $type.
Référencé par FormField\filter().
|
static |
Attempt to import the FormRule class file if it isn't already imported. You can use this method outside of Form for loading a rule for inheritance or composition.
string | $type | Type of a rule whose class should be loaded. |
Références $type.
|
static |
Method to load a form rule object given a type.
string | $type | The rule type. |
boolean | $new | Flag to toggle whether we should get a new instance of the object. |
Références $type.
Référencé par FieldModel\checkDefaultValue(), et FormField\validate().
|
staticprotected |
Method to load a form entity object given a type. Each type is loaded only once and then used as a prototype for other objects of same type. Please, use this method only with those entities which support types (forms don't support them).
string | $entity | The entity. |
string | $type | The entity type. |
boolean | $new | Flag to toggle whether we should get a new instance of the object. |
Parse the show on conditions
string | $showOn | Show on conditions. |
string | $formControl | Form name. |
string | $group | The dot-separated form group path. |
Références $field, et $groups.
Référencé par ListField\getOptions(), et FormField\renderField().
|
staticprotected |
|
staticprotected |
|
staticprotected |