Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe ExecutionRulesRule
+ Graphe d'héritage de ExecutionRulesRule:

Fonctions membres publiques

 test (\SimpleXMLElement $element, $value, $group=null, Registry $input=null, Form $form=null)
 
- Fonctions membres publiques hérités de FormRule
 test (\SimpleXMLElement $element, $value, $group=null, Registry $input=null, Form $form=null)
 

Fonctions membres privées

 validateField (\SimpleXMLElement $element, $value, ?string $group=null, ?Form $form=null)
 

Attributs privés

const RULE_TYPE_FIELD = "execution_rules.rule-type"
 
const CUSTOM_RULE_GROUP = "execution_rules.custom"
 

Membres hérités additionnels

- Attributs protégés hérités de FormRule
 $regex
 
 $modifiers = ''
 

Description détaillée

The ExecutionRulesRule Class. Validates execution rules, with input for other fields as context.

Depuis
4.1.0

Documentation des fonctions membres

◆ test()

test ( \SimpleXMLElement  $element,
  $value,
  $group = null,
Registry  $input = null,
Form  $form = null 
)
Paramètres
\SimpleXMLElement$elementThe SimpleXMLElement object representing the <field> tag for the form field object.
mixed$valueThe form field value to validate.
?string$group The field name group control value. This acts as an array container for the field. For example if the field has name="foo" and the group value is set to "bar" then the full field name would end up being "bar[foo]".
?Registry$input An optional Registry object with the entire data set to validate against the entire form.
?Form$form The form object for which the field is being tested.
Renvoie
boolean
Depuis
4.1.0

Références $form, $input, et $value.

◆ validateField()

validateField ( \SimpleXMLElement  $element,
  $value,
?string  $group = null,
?Form  $form = null 
)
private
Paramètres
\SimpleXMLElement$elementThe SimpleXMLElement for the field.
mixed$valueThe field value.
?string$group The form field group the element belongs to.
Form | null$formThe Form object against which the field is tested/
Renvoie
boolean True if field is valid
Depuis
4.1.0

Références $form, $value, et null.

Documentation des champs

◆ CUSTOM_RULE_GROUP

const CUSTOM_RULE_GROUP = "execution_rules.custom"
private

◆ RULE_TYPE_FIELD

const RULE_TYPE_FIELD = "execution_rules.rule-type"
private

La documentation de cette classe a été générée à partir du fichier suivant :