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 statiques | |
static | framework ($extras=false, $debug=null) |
static | core () |
static | caption ($selector='img.caption') |
static | formvalidation () |
static | formvalidator () |
static | switcher () |
static | combobox () |
static | tooltip ($selector='.hasTip', $params=array()) |
static | modal ($selector='a.modal', $params=array()) |
static | multiselect ($id='adminForm') |
static | tree ($id, $params=array(), $root=array()) |
static | calendar () |
static | colorpicker () |
static | simplecolorpicker () |
static | keepalive () |
static | highlighter (array $terms, $start='highlighter-start', $end='highlighter-end', $className='highlight', $tag='span') |
static | noframes () |
static | tabstate () |
static | polyfill ($polyfillTypes=null, $conditionalBrowser=null) |
Fonctions membres protégées statiques | |
static | _getJSObject ($array=array()) |
static | calendartranslation () |
Attributs protégés statiques | |
static | $loaded = array() |
Utility class for JavaScript behaviors
|
staticprotected |
Internal method to get a JavaScript object notation string from an array
array | $array | The array to convert to JavaScript object notation |
|
static |
|
staticprotected |
Internal method to translate the JavaScript Calendar
Références $text, et json_encode.
|
static |
Add unobtrusive JavaScript support for image captions.
string | $selector | The selector for which a caption behaviour is to be applied. |
4.0 Use native HTML figure tags.
Références $selector, et getDocument.
|
static |
Add unobtrusive JavaScript support for a color picker.
|
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.
|
static |
Method to load core.js into the document head.
Core.js defines the 'Joomla' namespace and contains functions which are used across extensions
Références getDocument.
|
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.
3.4 Use formvalidator instead
|
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.
Method to load the MooTools framework into the document head
If debugging mode is on an uncompressed version of MooTools is included for easier debugging.
boolean | $extras | Flag to determine whether to load MooTools More in addition to Core |
mixed | $debug | Is debugging mode on? [optional] |
|
static |
Highlight some words via Javascript.
array | $terms | Array of words that should be highlighted. |
string | $start | ID 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 | $end | ID of the element that end this section. Note this element will be removed from the DOM. |
string | $className | Class name of the element highlights are wrapped in. |
string | $tag | Tag that will be used to wrap the highlighted words. |
|
static |
Keep session alive, for example, while editing or creating an article.
|
static |
Add unobtrusive JavaScript support for modal links.
string | $selector | The selector for which a modal behaviour is to be applied. |
array | $params | An array of parameters for the modal behaviour. Options for the modal behaviour can be:
|
Références $document, $options, $params, $selector, getDocument, et null.
|
static |
JavaScript behavior to allow shift select in grids
string | $id | The id of the form for which a multiselect behaviour is to be applied. |
Références $id, et getDocument.
|
static |
Add javascript polyfills.
string | array | $polyfillTypes | The polyfill type(s). Examples: event, array('event', 'classlist'). |
string | $conditionalBrowser | An IE conditional expression. Example: lt IE 9 (lower than IE 9). |
Références null.
|
static |
Add unobtrusive JavaScript support for a simple color picker.
|
static |
Add unobtrusive JavaScript support for submenu switcher support
Références $script, et getDocument.
|
static |
Add unobtrusive JavaScript support to keep a tab state.
Note that keeping tab state only works for inner tabs if in accordance with the following example:
Each tab header <a>
tag also should have a unique href attribute
|
static |
Add unobtrusive JavaScript support for a hover tooltips.
Add a title attribute to any element in the form title="title::text"
Uses the core Tips class in MooTools.
string | $selector | The class selector for the tooltip. |
array | $params | An array of options for the tooltip. Options for the tooltip can be:
|
Références $options, $params, $selector, getDocument, et null.
|
static |
|
staticprotected |