PHP Класс 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.
Автор: Nuno Loureiro ([email protected])
Автор: Michael Slusarz ([email protected])
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_browser Horde_Browser A browser detection object.
$_js string Javascript code to init the editor.

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

getJS() публичный Метод

Returns the JS code needed to instantiate the editor.
public getJS ( ) : array
Результат 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() публичный Метод

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

supportedByBrowser() публичный Метод

Does the current browser support the Horde_Editor driver.
public supportedByBrowser ( ) : boolean
Результат boolean True if the browser supports the editor.

Описание свойств

$_browser защищенное свойство

A browser detection object.
protected Horde_Browser $_browser
Результат Horde_Browser

$_js защищенное свойство

Javascript code to init the editor.
protected string $_js
Результат string