PHP Class NBBCPlugin, addons

Inheritance: extends Gdn_Plugin
Show file Open project: vanilla/addons Class Usage Examples

Public Properties

Property Type Description
$Class

Protected Properties

Property Type Description
$_Media
$_NBBC

Public Methods

Method Description
DoAttachment ( $bbcode, $action, $name, $default, $params, $content ) METHODS ///
DoImage ( $bbcode, $action, $name, $default, $params, $content )
DoQuote ( $bbcode, $action, $name, $default, $params, $content )
DoURL ( $bbcode, $action, $name, $default, $params, $content )
DoVideo ( $bbcode, $action, $name, $default, $params, $content )
DoYoutube ( $bbcode, $action, $name, $default, $params, $content )
Format ( $Result )
Media ( )
NBBC ( ) : BBCode
RemoveAttachment ( )
Setup ( )
__construct ( $Class = 'BBCode' ) CONSTRUCTOR ///
doSize ( object $bbCode, integer $action, string $name, string $default, array $params, string $content ) : string Perform formatting against a string for the size tag
doSpoiler ( object $bbCode, integer $action, string $name, string $default, array $params, string $content ) : string Renders spoilers.

Method Details

DoAttachment() public method

METHODS ///
public DoAttachment ( $bbcode, $action, $name, $default, $params, $content )

DoImage() public method

public DoImage ( $bbcode, $action, $name, $default, $params, $content )

DoQuote() public method

public DoQuote ( $bbcode, $action, $name, $default, $params, $content )

DoURL() public method

public DoURL ( $bbcode, $action, $name, $default, $params, $content )

DoVideo() public method

public DoVideo ( $bbcode, $action, $name, $default, $params, $content )

DoYoutube() public method

public DoYoutube ( $bbcode, $action, $name, $default, $params, $content )

Format() public method

public Format ( $Result )

Media() public method

public Media ( )

NBBC() public method

public NBBC ( ) : BBCode
return BBCode

RemoveAttachment() public method

public RemoveAttachment ( )

Setup() public method

public Setup ( )

__construct() public method

CONSTRUCTOR ///
public __construct ( $Class = 'BBCode' )

doSize() public method

Perform formatting against a string for the size tag
public doSize ( object $bbCode, integer $action, string $name, string $default, array $params, string $content ) : string
$bbCode object Instance of NBBC parsing
$action integer Value of one of NBBC's defined constants. Typically, this will be BBCODE_CHECK.
$name string Name of the tag
$default string Value of the _default parameter, from the $params array
$params array A standard set parameters related to the tag
$content string Value between the open and close tags, if any
return string Formatted value

doSpoiler() public method

Renders spoilers.
public doSpoiler ( object $bbCode, integer $action, string $name, string $default, array $params, string $content ) : string
$bbCode object Instance of NBBC parsing
$action integer Value of one of NBBC's defined constants. Typically, this will be BBCODE_CHECK.
$name string Name of the tag
$default string Value of the _default parameter, from the $params array
$params array A standard set parameters related to the tag
$content string Value between the open and close tags, if any
return string HTML-formatted spoiler value

Property Details

$Class public property

public $Class

$_Media protected property

protected $_Media

$_NBBC protected property

protected $_NBBC