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

Fonctions membres publiques

 setup (\SimpleXMLElement $element, $value, $group=null)
 
 __get ($name)
 
 __set ($name, $value)
 
- Fonctions membres publiques hérités de ListField
 addOption ($text, $attributes=array())
 
 __get ($name)
 
- Fonctions membres publiques hérités de FormField
 __construct ($form=null)
 
 __get ($name)
 
 __set ($name, $value)
 
 setForm (Form $form)
 
 setup (\SimpleXMLElement $element, $value, $group=null)
 
 setValue ($value)
 
 getAttribute ($name, $default=null)
 
 getDataAttributes ()
 
 renderDataAttributes ()
 
 render ($layoutId, $data=array())
 
 renderField ($options=array())
 
 filter ($value, $group=null, Registry $input=null)
 
 validate ($value, $group=null, Registry $input=null)
 
 postProcess ($value, $group=null, Registry $input=null)
 
- Fonctions membres publiques hérités de DatabaseAwareInterface
 setDatabase (DatabaseInterface $db)
 

Champs de données

 $type = 'CategoryEdit'
 
- Champs de données hérités de FormField
 $repeat = false
 

Fonctions membres protégées

 getOptions ()
 
 getInput ()
 
- Fonctions membres protégées hérités de ListField
 getInput ()
 
 getOptions ()
 
- Fonctions membres protégées hérités de FormField
 getId ($fieldId, $fieldName)
 
 getInput ()
 
 getTitle ()
 
 getLabel ()
 
 getName ($fieldName)
 
 getFieldName ($fieldName)
 
 getLayoutData ()
 
 getLayoutPaths ()
 
 getRenderer ($layoutId='default')
 
 isDebugEnabled ()
 

Attributs protégés

 $allowAdd
 
 $customPrefix
 
 $layout = 'joomla.form.field.categoryedit'
 
- Attributs protégés hérités de ListField
 $type = 'List'
 
 $layout = 'joomla.form.field.list'
 
- Attributs protégés hérités de FormField
 $description
 
 $hint
 
 $autocomplete = 'on'
 
 $spellcheck = true
 
 $autofocus = false
 
 $element
 
 $form
 
 $formControl
 
 $hidden = false
 
 $hiddenLabel = false
 
 $hiddenDescription = false
 
 $translateLabel = true
 
 $translateDescription = true
 
 $translateHint = true
 
 $id
 
 $input
 
 $label
 
 $multiple = false
 
 $pattern
 
 $validationtext
 
 $name
 
 $fieldname
 
 $group
 
 $required = false
 
 $disabled = false
 
 $readonly = false
 
 $type
 
 $validate
 
 $value
 
 $default
 
 $size
 
 $class
 
 $labelclass
 
 $onchange
 
 $onclick
 
 $showon
 
 $parentclass
 
 $layout
 
 $renderLayout = 'joomla.form.renderfield'
 
 $renderLabelLayout = 'joomla.form.renderlabel'
 
 $dataAttributes = array()
 

Membres hérités additionnels

- Attributs protégés statiques hérités de FormField
static $count = 0
 
static $generated_fieldname = '__field'
 

Description détaillée

Category Edit field..

Depuis
1.6

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.6

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.6

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

◆ getInput()

getInput ( )
protected

Method to get the field input markup for a generic list. Use the multiple attribute to enable multiselect.

Renvoie
string The field input markup.
Depuis
3.6

Références $data, et $renderer.

◆ getOptions()

getOptions ( )
protected

Method to get a list of categories that respects access controls and can be used for either category assignment or parent category assignment in edit screens. Use the parent element to indicate that the field will be used for assigning parent categories.

Renvoie
array The field option objects.
Depuis
1.6

Références $db, $extension, $groups, $i, $language, $n, $name, $option, $options, $published, $query, $state, $user, Text\_(), HTMLHelper\_(), Factory\getApplication(), Joomla\Database\getDatabase(), Factory\getUser(), ParameterType\INTEGER, language, level, ParameterType\STRING, et ArrayHelper\toInteger().

◆ 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 | null$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
FormField::setup()
Depuis
3.2

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

Documentation des champs

◆ $allowAdd

$allowAdd
protected

◆ $customPrefix

$customPrefix
protected

◆ $layout

$layout = 'joomla.form.field.categoryedit'
protected

◆ $type

$type = 'CategoryEdit'

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