SilverStripe\BBCodeParser\BBCodeParser
BBCode parser object.
Use on a text field in a template with $Content.Parse(BBCodeParser).
Synopsis
class BBCodeParser
extends TextParser
{
- // members
- private static Boolean $autolink_urls = true;
- private static Boolean $allow_smilies = false;
- private static $smilies_location = NULL;
- // Inherited members from TextParser
- protected $content;
- // methods
- public static void usable_tags()
- public void useable_tagsHTML()
- public DBField parse()
- // Inherited methods from TextParser
- public void __construct()
- public void setContent()
- public abstract DBField parse()
Hierarchy
Members
private
- $allow_smilies — SilverStripe\BBCodeParser\Boolean
- $autolink_urls — SilverStripe\BBCodeParser\Boolean
- $smilies_location
—
string
Set the location of the smiles folder. By default use the ones in framework but this can be overridden by setting this via config API
protected
- $content — string
Methods
public
- parse() — Main BBCode parser method. This takes plain jane content and runs it through so many filters
Inherited from SilverStripe\BBCodeParser\TextParser
public
- parse() — Define your own parse method to parse $this->content appropriately.
- setContent() — Convenience method, shouldn't really be used, but it's here if you want it