Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe Behavior

Fonctions membres publiques statiques

static core ()
 
static formvalidator ()
 
static combobox ()
 
static multiselect ($id='adminForm')
 
static keepalive ()
 
static highlighter (array $terms, $start='highlighter-start', $end='highlighter-end', $className='highlight', $tag='span')
 

Fonctions membres protégées statiques

static calendartranslation ()
 

Attributs protégés statiques

static $loaded = array()
 

Description détaillée

Utility class for JavaScript behaviors

Depuis
1.5

Documentation des fonctions membres

◆ calendartranslation()

static calendartranslation ( )
staticprotected

Internal method to translate the JavaScript Calendar

Renvoie
string JavaScript that translates the object
Depuis
1.5

Références $text, Text\_(), et Factory\getLanguage().

◆ combobox()

static combobox ( )
static

Add unobtrusive JavaScript support for a combobox effect.

Note that this control is only reliable in absolutely positioned elements. Avoid using a combobox in a slider or dynamic pane.

Renvoie
void
Depuis
1.5
Obsolète:
5.0 Use the script directly

Références Factory\getDocument().

◆ core()

static core ( )
static

Method to load core.js into the document head.

Core.js defines the 'Joomla' namespace and contains functions which are used across extensions

Renvoie
void
Depuis
3.3
Obsolète:
5.0 Use Joomla::enable();

Références Factory\getApplication().

◆ formvalidator()

static formvalidator ( )
static

Add unobtrusive JavaScript support for form validation.

To enable form validation the form tag must have class="form-validate". Each field that needs to be validated needs to have class="validate". Additional handlers can be added to the handler for username, password, numeric and email. To use these add class="validate-email" and so on.

Renvoie
void
Depuis
3.4
Obsolète:
5.0 Use the script directly

Références Factory\getDocument().

◆ highlighter()

static highlighter ( array  $terms,
  $start = 'highlighter-start',
  $end = 'highlighter-end',
  $className = 'highlight',
  $tag = 'span' 
)
static

Highlight some words via Javascript.

Paramètres
array$termsArray of words that should be highlighted.
string$startID of the element that marks the begin of the section in which words should be highlighted. Note this element will be removed from the DOM.
string$endID of the element that end this section. Note this element will be removed from the DOM.
string$classNameClass name of the element highlights are wrapped in.
string$tagTag that will be used to wrap the highlighted words.
Renvoie
void
Depuis
2.5
Obsolète:
5.0 Use the script directly

Références $doc, $start, et Factory\getDocument().

◆ keepalive()

static keepalive ( )
static

Keep session alive, for example, while editing or creating an article.

Renvoie
void
Depuis
1.5
Obsolète:
5.0 Use Joomla::enable();

Références Factory\getApplication().

◆ multiselect()

static multiselect (   $id = 'adminForm')
static

JavaScript behavior to allow shift select in grids

Paramètres
string$idThe id of the form for which a multiselect behaviour is to be applied.
Renvoie
void
Depuis
1.7
Obsolète:
5.0 Use the script directly

Références $id, et Factory\getDocument().

Documentation des champs

◆ $loaded

$loaded = array()
staticprotected

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