sfRichTextEditor.class.php 1.2 KB

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