Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe JFormFieldRules
+ Graphe d'héritage de JFormFieldRules:

Fonctions membres publiques

 __get ($name)
 
 __set ($name, $value)
 
 setup (SimpleXMLElement $element, $value, $group=null)
 

Fonctions membres protégées

 getInput ()
 
 getUserGroups ()
 

Attributs protégés

 $type = 'Rules'
 
 $section
 
 $component
 
 $assetField
 

Description détaillée

Form Field class for the Joomla Platform. Field for assigning permissions to groups for a given asset

Voir également
JAccess
Depuis
1.7.0

Documentation des fonctions membres

◆ __get()

__get (   $name)

Method to get certain otherwise inaccessible properties from the form field object.

Paramètres
string$nameThe property name for which to get the value.
Renvoie
mixed The property value or null.
Depuis
3.2

Références $name.

◆ __set()

__set (   $name,
  $value 
)

Method to set certain otherwise inaccessible properties of the form field object.

Paramètres
string$nameThe property name for which to set the value.
mixed$valueThe value of the property.
Renvoie
void
Depuis
3.2

Références $name, et $value.

◆ getInput()

getInput ( )
protected

Method to get the field input markup for Access Control Lists. Optionally can be associated with a specific component and section.

Renvoie
string The field input markup.
Depuis
1.7.0

do: incorrect info When creating a new item (not saving) it uses the calculated permissions from the component (item <-> component <-> global config). But if we have a section too (item <-> section(s) <-> component <-> global config) this is not correct. Also, currently it uses the component permission, but should use the calculated permissions for achild of the component/section.

Possible values: null = not set means inherited false = denied true = allowed

do: incorrect info If a component has a permission that doesn't exists in global config (ex: frontend editing in com_modules) by default we get "Not Allowed (Inherited)" when we should get "Not Allowed (Default)".

Component/Item with explicit "Denied" permission at parent Asset (Category, Component or Global config) configuration. Or some parent group has an explicit "Denied". Calculated permission is "Not Allowed (Locked)".

Références $action, $active, $ajaxUri, $assetId, Access\$assetRules, $component, $db, $groups, $html, $query, $section, elseif, ENT_QUOTES, htmlspecialchars, name, et null.

◆ getUserGroups()

getUserGroups ( )
protected

Get a list of the user groups.

Renvoie
array
Depuis
1.7.0

Références $option, et $options.

◆ setup()

setup ( SimpleXMLElement  $element,
  $value,
  $group = null 
)

Method to attach a JForm object to the field.

Paramètres
SimpleXMLElement$elementThe SimpleXMLElement object representing the <field> tag for the form field object.
mixed$valueThe form field value to validate.
string$groupThe 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]".
Renvoie
boolean True on success.
Voir également
JFormField::setup()
Depuis
3.2

Références $return, et $value.

Documentation des champs

◆ $assetField

$assetField
protected

◆ $component

$component
protected

◆ $section

$section
protected

◆ $type

$type = 'Rules'
protected

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