A bare bones front-end for knockout designed for maximum compatibility with "obsolete" browsers
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

33 lignes
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. }