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

Fonctions membres publiques

 setup (\SimpleXMLElement $element, $value, $group=null)
 
- 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)
 

Fonctions membres protégées

 getOptions ()
 
- 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

 $type = 'cronIntervals'
 
- 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()
 

Attributs privés

const SUBTYPES
 
const OPTIONS_RANGE
 
const PREPARED_RESPONSE_LABELS
 
 $subtype
 
 $wildcard
 
 $onlyNumericLabels
 

Membres hérités additionnels

- Champs de données hérités de FormField
 $repeat = false
 
- Attributs protégés statiques hérités de FormField
static $count = 0
 
static $generated_fieldname = '__field'
 

Description détaillée

Multi-select form field, supporting inputs of: minutes, hours, days of week, days of month and months.

Depuis
4.1.0

Documentation des fonctions membres

◆ getOptions()

getOptions ( )
protected

Method to get field options

Renvoie
array Array of objects representing options in the options list
Depuis
4.1.0

Références $i, $options, Text\_(), et HTMLHelper\_().

◆ setup()

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

Override the parent method to set deal with subtypes.

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.
Depuis
4.1.0

Références $value, et null.

Documentation des champs

◆ $onlyNumericLabels

$onlyNumericLabels
private

◆ $subtype

$subtype
private

◆ $type

$type = 'cronIntervals'
protected

◆ $wildcard

$wildcard
private

◆ OPTIONS_RANGE

const OPTIONS_RANGE
private
Valeur initiale :
= [
'minutes' => [0, 59]

◆ PREPARED_RESPONSE_LABELS

const PREPARED_RESPONSE_LABELS
private
Valeur initiale :
= [
'months' => [
'JANUARY', 'FEBRUARY', 'MARCH', 'APRIL', 'MAY', 'JUNE',
'JULY', 'AUGUST', 'SEPTEMBER', 'OCTOBER', 'NOVEMBER', 'DECEMBER',
]

◆ SUBTYPES

const SUBTYPES
private
Valeur initiale :
= [
'minutes',
'hours',
'days_month',
'months',
'days_week',
]

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