Overview

Packages

  • Editor

Classes

  • Horde_Editor
  • Horde_Editor_Ckeditor
  • Horde_Editor_Exception
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * The Horde_Editor:: package provides an API to generate the code necessary
 4:  * for embedding javascript RTE editors in a web page.
 5:  *
 6:  * Copyright 2003-2012 Horde LLC (http://www.horde.org/)
 7:  *
 8:  * See the enclosed file COPYING for license information (LGPL). If you
 9:  * did not receive this file, see http://www.horde.org/licenses/lgpl21.
10:  *
11:  * @author   Nuno Loureiro <nuno@co.sapo.pt>
12:  * @author   Michael Slusarz <slusarz@horde.org>
13:  * @category Horde
14:  * @package  Editor
15:  */
16: class Horde_Editor
17: {
18:     /**
19:      * A browser detection object.
20:      *
21:      * @var Horde_Browser
22:      */
23:     protected $_browser;
24: 
25:     /**
26:      * Javascript code to init the editor.
27:      *
28:      * @var string
29:      */
30:     protected $_js = '';
31: 
32:     /**
33:      * Constructor.
34:      *
35:      * @param array $params  The following configuration parameters:
36:      * <pre>
37:      * 'browser' - (Horde_Browser) A browser object.
38:      * </pre>
39:      */
40:     public function __construct(Horde_Browser $browser)
41:     {
42:         $this->_browser = $browser;
43:     }
44: 
45:     public function initialize(array $params = array())
46:     {
47:     }
48: 
49:     /**
50:      * Returns the JS code needed to instantiate the editor.
51:      *
52:      * @return string  Javascript code.
53:      */
54:     public function getJS()
55:     {
56:         return $this->_js;
57:     }
58: 
59:     /**
60:      * Does the current browser support the Horde_Editor driver.
61:      *
62:      * @return boolean  True if the browser supports the editor.
63:      */
64:     public function supportedByBrowser()
65:     {
66:         return false;
67:     }
68: }
69: 
API documentation generated by ApiGen