\JEditor
JEditor class to handle WYSIWYG editors
Synopsis
class JEditor
extends JObject
{
- // members
- protected $_observers;
- protected $_state;
- protected $_methods;
- protected $_editor;
- protected $_name;
- protected $asset;
- protected $author;
- protected $instances;
- // Inherited members from JObject
- protected $_errors;
- // methods
- public void __construct()
- public static JEditor getInstance()
- public mixed getState()
- public void attach()
- public boolean detach()
- public void initialise()
- public string display()
- public string save()
- public string getContent()
- public string setContent()
- public array getButtons()
- protected mixed _loadEditor()
- // Inherited methods from JObject
- public void __construct()
- public string __toString()
- public mixed def()
- public mixed get()
- public array getProperties()
- public string getError()
- public array getErrors()
- public mixed set()
- public boolean setProperties()
- public void setError()
Hierarchy
Extends
Tasks
Tasks
Line | Task |
---|---|
253 | remove code: $return .= $result; |
Members
protected
- $_editor
—
Editor Plugin object - $_errors
—
array
An array of error messages or Exception objects. - $_methods
—
array
A multi dimensional array of [function][] = key for observers - $_name
—
string
Editor Plugin name - $_observers
—
array
An array of Observer objects to notify - $_state
—
mixed
The state of the observable object - $asset
—
string
Object asset - $instances — array
Methods
protected
- _loadEditor() — Load the editor
public
- __construct() — Constructor
- attach() — Attach an observer object
- detach() — Detach an observer object
- display() — Display the editor area.
- getButtons() — Get the editor extended buttons (usually from plugins)
- getContent() — Get the editor contents
- getInstance() — Returns the global Editor object, only creating it if it doesn't already exist.
- getState() — Get the state of the JEditor object
- initialise() — Initialise the editor
- save() — Save the editor content
- setContent() — Set the editor contents
Inherited from JObject
public
- __toString() — Magic method to convert the object to a string gracefully.
- def() — Sets a default value if not alreay assigned
- get() — Returns a property of the object or the default value if the property is not set.
- getError() — Get the most recent error message.
- getErrors() — Return all errors, if any.
- getProperties() — Returns an associative array of object properties.
- set() — Modifies a property of the object, creating it if it does not already exist.
- setError() — Add an error message.
- setProperties() — Set the object properties based on a named array/hash.