PHP Класс NBBCPlugin, addons

Наследование: extends Gdn_Plugin
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$Class

Защищенные свойства (Protected)

Свойство Тип Описание
$_Media
$_NBBC

Открытые методы

Метод Описание
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.

Описание методов

DoAttachment() публичный Метод

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

DoImage() публичный Метод

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

DoQuote() публичный Метод

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

DoURL() публичный Метод

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

DoVideo() публичный Метод

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

DoYoutube() публичный Метод

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

Format() публичный Метод

public Format ( $Result )

Media() публичный Метод

public Media ( )

NBBC() публичный Метод

public NBBC ( ) : BBCode
Результат BBCode

RemoveAttachment() публичный Метод

public RemoveAttachment ( )

Setup() публичный Метод

public Setup ( )

__construct() публичный Метод

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

doSize() публичный Метод

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
Результат string Formatted value

doSpoiler() публичный Метод

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
Результат string HTML-formatted spoiler value

Описание свойств

$Class публичное свойство

public $Class

$_Media защищенное свойство

protected $_Media

$_NBBC защищенное свойство

protected $_NBBC