public abstract class TextFormatter

class.textformatter.php #9

The abstract TextFormatter classes defines two methods that must be implemented by any Symphony text formatter.


array about()

The about method allows a text formatter to provide information about itself as an associative array. eg. array( 'name' => 'Name of Formatter', 'version' => '1.8', 'release-date' => 'YYYY-MM-DD', 'author' => array( 'name' => 'Author Name', 'website' => 'Author Website', 'email' => 'Author Email' ), 'description' => 'A description about this formatter' )


An associative array describing the text formatter.

string run(string $string)

Given an input, apply the formatter and return the result

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details