![]() |
Joomla CMS
3.9.25 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.9.25 et du framework Joomla Platform intégré
|
Graphe d'héritage de Editor:Fonctions membres publiques | |
| __construct ($editor='none') | |
| getState () | |
| attach ($observer) | |
| detach ($observer) | |
| initialise () | |
| display ($name, $html, $width, $height, $col, $row, $buttons=true, $id=null, $asset=null, $author=null, $params=array()) | |
| save ($editor) | |
| getContent ($editor) | |
| setContent ($editor, $html) | |
| getButtons ($editor, $buttons=true) | |
Fonctions membres publiques statiques | |
| static | getInstance ($editor='none') |
Fonctions membres protégées | |
| _loadEditor ($config=array()) | |
Attributs protégés | |
| $_observers = array() | |
| $_state = null | |
| $_methods = array() | |
| $_editor = null | |
| $_name = null | |
| $asset = null | |
| $author = null | |
Attributs protégés statiques | |
| static | $instances = array() |
Editor class to handle WYSIWYG editors
| __construct | ( | $editor = 'none' | ) |
|
protected |
Load the editor
| array | $config | Associative array of editor config parameters |
Références Editor\$_name, $config, $name, $params, $path, Editor\initialise(), JPATH_PLUGINS, et null.
Référencé par Editor\display(), Editor\getContent(), Editor\save(), et Editor\setContent().
| attach | ( | $observer | ) |
| detach | ( | $observer | ) |
Detach an observer object
| object | $observer | An observer object to detach. |
Références $key.
| display | ( | $name, | |
| $html, | |||
| $width, | |||
| $height, | |||
| $col, | |||
| $row, | |||
$buttons = true, |
|||
$id = null, |
|||
$asset = null, |
|||
$author = null, |
|||
$params = array() |
|||
| ) |
Display the editor area.
| string | $name | The control name. |
| string | $html | The contents of the text area. |
| string | $width | The width of the text area (px or %). |
| string | $height | The height of the text area (px or %). |
| integer | $col | The number of columns for the textarea. |
| integer | $row | The number of rows for the textarea. |
| boolean | $buttons | True and the editor buttons will be displayed. |
| string | $id | An optional ID for the textarea (note: since 1.6). If not supplied the name is used. |
| string | $asset | The object asset |
| object | $author | The author. |
| array | $params | Associative array of editor parameters. |
Références Editor\$asset, Editor\$author, $buttons, $height, $html, $id, $name, $params, $results, $return, $row, $width, Editor\_loadEditor(), et null.
| getButtons | ( | $editor, | |
$buttons = true |
|||
| ) |
Get the editor extended buttons (usually from plugins)
| string | $editor | The name of the editor. |
| mixed | $buttons | Can be boolean or array, if boolean defines if the buttons are displayed, if array defines a list of buttons not to show. |
Références $button, $buttons, $className, et $editor.
| getContent | ( | $editor | ) |
Get the editor contents
| string | $editor | The name of the editor control |
Références $editor, $results, $return, et Editor\_loadEditor().
|
static |
Returns the global Editor object, only creating it if it doesn't already exist.
| string | $editor | The editor to use. |
Références $editor.
Référencé par EditorField\getEditor(), et Factory\getEditor().
| getState | ( | ) |
Get the state of the Editor object
Références Editor\$_state.
| initialise | ( | ) |
Initialise the editor
Références $document, $results, $return, getDocument, et null.
Référencé par Editor\_loadEditor().
| save | ( | $editor | ) |
| setContent | ( | $editor, | |
| $html | |||
| ) |
|
protected |
|
protected |
|
protected |
Référencé par Editor\_loadEditor().
|
protected |
|
protected |
Référencé par Editor\getState().
|
protected |
Référencé par Editor\display().
|
protected |
Référencé par Editor\display().
|
staticprotected |