Chuyển đến nội dung
Tài liệu

Tra cứu lớp và hàm

Formatter

Danh sách các phương thức công khai của lớp Zittme\Framework\Formatter. Tài liệu này được tạo tự động từ mã nguồn lõi Zittme.

Nguồn: common/framework/Formatter.php

Phương thức công khai

  • static function text2html(string $text, int $options = 0)
  • Convert plain text to HTML.
  • static function html2text(string $html)
  • Convert HTML to plain text.
  • static function markdown2html(string $markdown, int $options = 0)
  • Convert Markdown to HTML.
  • static function html2markdown(string $html)
  • Convert HTML to Markdown.
  • static function bbcode(string $bbcode)
  • Convert BBCode to HTML.
  • static function applySmartQuotes(string $html)
  • Apply smart quotes and other stylistic enhancements to HTML.
  • static function compileLESS($source_filename, string $target_filename, array $variables = [], bool $minify = false)
  • Compile LESS into CSS.
  • static function compileSCSS($source_filename, string $target_filename, array $variables = [], bool $minify = false, bool $make_sourcemap = false)
  • Compile SCSS into CSS.
  • static function minifyCSS($source_filename, string $target_filename)
  • Minify CSS.
  • static function minifyJS($source_filename, string $target_filename)
  • Minify JS.
  • static function concatCSS($source_filename, string $target_filename, bool $add_comment = true, array &$imported_list = [])
  • CSS concatenation subroutine for compileLESS() and compileSCSS().
  • static function concatJS($source_filename)
  • JS concatenation subroutine.
  • static function convertIECondition($condition)
  • Convert IE conditional comments to JS conditions.