PHP Class Horde_Editor, horde

Copyright 2003-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Author: Nuno Loureiro ([email protected])
Author: Michael Slusarz ([email protected])
ファイルを表示 Open project: horde/horde

Protected Properties

Property Type Description
$_browser Horde_Browser A browser detection object.
$_js string Javascript code to init the editor.

Public Methods

Method Description
__construct ( Horde_Browser $browser ) Constructor.
getJS ( ) : array Returns the JS code needed to instantiate the editor.
initialize ( array $params = [] ) Initialize the editor.
supportedByBrowser ( ) : boolean Does the current browser support the Horde_Editor driver.

Method Details

__construct() public method

Constructor.
public __construct ( Horde_Browser $browser )
$browser Horde_Browser

getJS() public method

Returns the JS code needed to instantiate the editor.
public getJS ( ) : array
return array Two keys: - files: (array) Javascript files that need to be loaded by browser. - scrips: (array) Code that needs to be run on the browser.

initialize() public method

Initialize the editor.
public initialize ( array $params = [] )
$params array Additional parameters.

supportedByBrowser() public method

Does the current browser support the Horde_Editor driver.
public supportedByBrowser ( ) : boolean
return boolean True if the browser supports the editor.

Property Details

$_browser protected_oe property

A browser detection object.
protected Horde_Browser $_browser
return Horde_Browser

$_js protected_oe property

Javascript code to init the editor.
protected string $_js
return string