SilverStripe 2.4 API Docs
  • Package
  • Class
  • Tree
  • Deprecated
Version: master
  • master
  • 3.1
  • 3.0
  • 2.4
  • tagfield

Packages

  • cms
    • assets
    • batchaction
    • batchactions
    • bulkloading
    • comments
    • content
    • core
    • export
    • publishers
    • reports
    • security
    • tasks
  • forms
    • actions
    • core
    • fields-basic
    • fields-dataless
    • fields-datetime
    • fields-files
    • fields-formatted
    • fields-formattedinput
    • fields-relational
    • fields-structural
    • transformations
    • validators
  • installer
  • None
  • PHP
  • sapphire
    • api
    • bulkloading
    • control
    • core
    • cron
    • dev
    • email
    • fields-formattedinput
    • filesystem
    • formatters
    • forms
    • i18n
    • integration
    • misc
    • model
    • parsers
    • search
    • security
    • tasks
    • testing
    • tools
    • validation
    • view
    • widgets

Classes

  • ArrayLib
  • BBCodeParser
  • Convert
  • Cookie
  • DataDifferencer
  • Geoip
  • HTMLCleaner
  • HTTP
  • i18n
  • Profiler
  • ShortcodeParser
  • SSHTMLBBCodeParser
  • SSHTMLBBCodeParser_Filter
  • SSHTMLBBCodeParser_Filter_Basic
  • SSHTMLBBCodeParser_Filter_EmailLinks
  • SSHTMLBBCodeParser_Filter_Extended
  • SSHTMLBBCodeParser_Filter_Images
  • SSHTMLBBCodeParser_Filter_Links
  • SSHTMLBBCodeParser_Filter_Lists
  • TextParser
  • Translatable_Transformation
  • XML

Class BBCodeParser

BBCode parser object. Use on a text field in a template with $Content.Parse(BBCodeParser).

Object
Extended by TextParser
Extended by BBCodeParser
Package: sapphire\misc
Located at sapphire/parsers/BBCodeParser.php

Methods summary

public static
# smilies_location( )
public static
# set_icon_folder( mixed $path )
public static
# autolinkUrls( )
public static
# disable_autolink_urls( mixed $autolink = false )
public static
# smiliesAllowed( )
public static
# enable_smilies( )
public static
# usable_tags( )
public
# useable_tagsHTML( )
public Text
# parse( )

Main BBCode parser method. This takes plain jane content and runs it through so many filters

Main BBCode parser method. This takes plain jane content and runs it through so many filters

Returns

Text

Methods inherited from TextParser

__construct(), setContent()

Methods inherited from Object

__call(), __toString(), addMethodsFrom(), addStaticVars(), addWrapperMethod(), add_extension(), add_static_var(), allMethodNames(), cacheToFile(), cacheToFileWithArgs(), clearCache(), combined_static(), create(), createMethod(), create_from_string(), defineMethods(), exists(), extInstance(), extend(), getCustomClass(), getExtensionInstance(), getExtensionInstances(), get_extensions(), get_static(), hasExtension(), hasMethod(), has_extension(), invokeWithExtensions(), is_a(), loadCache(), parentClass(), parse_class_spec(), remove_extension(), sanitiseCachename(), saveCache(), set_stat(), set_static(), set_uninherited(), stat(), strong_create(), uninherited(), uninherited_static(), useCustomClass()

Magic methods summary

Properties summary

protected static Boolean $autolinkUrls
#

Set whether phrases starting with http:// or www. are automatically linked

Set whether phrases starting with http:// or www. are automatically linked

protected static Boolean $allowSimilies
#

Set whether similies :), :(, :P are converted to images

Set whether similies :), :(, :P are converted to images

protected static string $smilies_location
#

Set the location of the smiles folder. By default use the ones in sapphire but this can be overridden by setting BBCodeParser::set_icon_folder('themes/yourtheme/images/');

Set the location of the smiles folder. By default use the ones in sapphire but this can be overridden by setting BBCodeParser::set_icon_folder('themes/yourtheme/images/');

Properties inherited from TextParser

$content

Properties inherited from Object

$class, $extension_instances, $extensions

Comments

Comment policy: Please use comments for tips and corrections about the described functionality. Comments are moderated, we reserve the right to remove comments that are inappropriate or are no longer relevant.
Use the Silverstripe Forum to ask questions.
blog comments powered by Disqus
SilverStripe 2.4 API Docs API documentation generated by ApiGen 2.8.0