Development

/branches/1.2/lib/helper/sfRichTextEditor.class.php

You must first sign up to be able to contribute.

root/branches/1.2/lib/helper/sfRichTextEditor.class.php

Revision 9101, 1.1 kB (checked in by FabianLange, 6 years ago)

1.1: fixed @param phpdoc to fit specs in helper (refs #2991)

  • Property svn:mime-type set to text/x-php
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 <?php
2
3 /*
4  * This file is part of the symfony package.
5  * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 /**
12  * sfRichTextEditor is an abstract class for rich text editor classes.
13  *
14  * @package    symfony
15  * @subpackage helper
16  * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
17  * @version    SVN: $Id$
18  */
19 abstract class sfRichTextEditor
20 {
21   protected
22     $name = '',
23     $content = '',
24     $options = array();
25
26   /**
27    * Initializes this rich text editor.
28    *
29    * @param string $name     The tag name
30    * @param string $content  The rich text editor content
31    * @param array  $options  An array of options
32    */
33   public function initialize($name, $content, $options = array())
34   {
35     $this->name = $name;
36     $this->content = $content;
37     $this->options = $options;
38   }
39
40   /**
41    * Returns the rich text editor as HTML.
42    *
43    * @return string Rich text editor HTML representation
44    */
45   abstract public function toHTML();
46 }
47
Note: See TracBrowser for help on using the browser.