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é
|
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 | |
Form Field class for the Joomla Platform. Field for assigning permissions to groups for a given asset
__get | ( | $name | ) |
Method to get certain otherwise inaccessible properties from the form field object.
string | $name | The property name for which to get the value. |
Références $name.
__set | ( | $name, | |
$value | |||
) |
|
protected |
Method to get the field input markup for Access Control Lists. Optionally can be associated with a specific component and section.
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.
|
protected |
setup | ( | SimpleXMLElement | $element, |
$value, | |||
$group = null |
|||
) |
Method to attach a JForm object to the field.
SimpleXMLElement | $element | The SimpleXMLElement object representing the <field> tag for the form field object. |
mixed | $value | The 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]". |
|
protected |
|
protected |
|
protected |
|
protected |