PHP 클래스 IPBFormatterPlugin, addons

상속: extends Gdn_Plugin
파일 보기 프로젝트 열기: vanilla/addons

보호된 프로퍼티들

프로퍼티 타입 설명
$_Media null
$_NBBC BBCode

공개 메소드들

메소드 설명
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;

메소드 상세

BBCode_afterBBCodeSetup_handler() 공개 메소드

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

doAttachment() 공개 메소드

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

editorPlugin_getFormats_handler() 공개 메소드

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() 공개 메소드

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 format ( $string ) : mixed | string
$string
리턴 mixed | string

media() 공개 메소드

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

nbbc() 공개 메소드

public nbbc ( ) : BBCode;
리턴 BBCode;

프로퍼티 상세

$_Media 보호되어 있는 프로퍼티

protected null $_Media
리턴 null

$_NBBC 보호되어 있는 프로퍼티

protected BBCode $_NBBC
리턴 BBCode