A bare bones front-end for knockout designed for maximum compatibility with "obsolete" browsers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
806B

  1. <?php
  2. namespace App\Vendor\BBCode\Tags;
  3. /**
  4. * This class is the abstract base class for all BBCode tag classes.
  5. */
  6. abstract class AbstractTag
  7. {
  8. /**
  9. * The name of the tag type (lower cased).
  10. * The sub class has to overwrite this constant.
  11. */
  12. const NAME = '';
  13. /**
  14. * If true, inner tags will be treated as plain text
  15. * The sub class has to overwrite this constant.
  16. */
  17. const NO_PARSE = false;
  18. /**
  19. * This method renders a tag of this type.
  20. * Has to return something, at least an empty string.
  21. *
  22. * @param string $html The generated HTML code so far - passed by reference
  23. * @param bool $opening Is the tag opening (true) or closing (false)?
  24. * @return void
  25. */
  26. abstract public function render(&$html, $opening);
  27. }