PHP Class IPBFormatterPlugin, addons

Inheritance: extends Gdn_Plugin
Show file Open project: vanilla/addons

Protected Properties

Property Type Description
$_Media null
$_NBBC BBCode

Public Methods

Method Description
BBCode_afterBBCodeSetup_handler ( $sender, $args )
doAttachment ( $bbcode, $action, $name, $default, $params, $content ) : string
editorPlugin_getFormats_handler ( $sender, &$args ) Hooks into the GetFormats event from the Advanced Editor plug-in and adds the IPB format.
editorPlugin_getJSDefinitions_handler ( $sender, &$args ) Hooks into the GetJSDefinitions event from the Advanced Editor plug-in and adds definitions related to the IPB format.
format ( $string ) : mixed | string
media ( ) : array | null Build an array of attachment records from the Media table, using the MediaID as each record's index.
nbbc ( ) : BBCode;

Method Details

BBCode_afterBBCodeSetup_handler() public method

public BBCode_afterBBCodeSetup_handler ( $sender, $args )
$sender
$args

doAttachment() public method

public doAttachment ( $bbcode, $action, $name, $default, $params, $content ) : string
$bbcode
$action
$name
$default
$params
$content
return string

editorPlugin_getFormats_handler() public method

Hooks into the GetFormats event from the Advanced Editor plug-in and adds the IPB format.
public editorPlugin_getFormats_handler ( $sender, &$args )
$sender Instance of EditorPlugin firing the event

editorPlugin_getJSDefinitions_handler() public method

Hooks into the GetJSDefinitions event from the Advanced Editor plug-in and adds definitions related to the IPB format.
public editorPlugin_getJSDefinitions_handler ( $sender, &$args )
$sender Instance of EditorPlugin firing the event

format() public method

public format ( $string ) : mixed | string
$string
return mixed | string

media() public method

Build an array of attachment records from the Media table, using the MediaID as each record's index.
public media ( ) : array | null
return array | null

nbbc() public method

public nbbc ( ) : BBCode;
return BBCode;

Property Details

$_Media protected property

protected null $_Media
return null

$_NBBC protected property

protected BBCode $_NBBC
return BBCode