A bare bones front-end for knockout designed for maximum compatibility with "obsolete" browsers
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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