PHP Class QuotesPlugin, vanilla

Inheritance: extends Gdn_Plugin
Mostra file Open project: vanilla/vanilla

Public Properties

Property Type Description
$HandleRenderQuotes boolean

Public Methods

Method Description
__construct ( )
base_AfterFlag_handler ( $Sender, $Args ) Add 'Quote' option to Discussion.
controller_getquote ( $Sender )
discussionController_beforeCommentDisplay_handler ( $Sender )
discussionController_beforeDiscussionDisplay_handler ( $Sender )
discussionController_beforeDiscussionRender_handler ( $Sender )
discussionController_getQuote_create ( $Sender, $Selector, boolean $Format = false )
discussionController_render_before ( $Sender )
pluginController_quotes_create ( $Sender )
postController_BeforeCommentRender_handler ( $Sender )
postController_beforeCommentDisplay_handler ( $Sender )
postController_beforeDiscussionDisplay_handler ( $Sender )
postController_quote_create ( $Sender )
postController_render_before ( $Sender )
profileController_afterAddSideMenu_handler ( $Sender )
profileController_quotes_create ( $Sender )
setup ( ) No setup.

Protected Methods

Method Description
PrepareController ( $Sender )
_stripMarkdownQuotes ( $Text ) : mixed
_stripMentions ( $Text ) : mixed
addQuoteButton ( $Sender, $Args ) Output Quote link.
formatQuote ( $Type, $ID, &$QuoteData, boolean $Format = false )
quoteAuthorCallback ( $Matches ) : string
renderQuotes ( $Sender ) Render quotes.

Method Details

PrepareController() protected method

protected PrepareController ( $Sender )
$Sender

__construct() public method

public __construct ( )

_stripMarkdownQuotes() protected static method

protected static _stripMarkdownQuotes ( $Text ) : mixed
$Text
return mixed

_stripMentions() protected static method

protected static _stripMentions ( $Text ) : mixed
$Text
return mixed

addQuoteButton() protected method

Output Quote link.
protected addQuoteButton ( $Sender, $Args )

base_AfterFlag_handler() public method

Add 'Quote' option to Discussion.
public base_AfterFlag_handler ( $Sender, $Args )

controller_getquote() public method

public controller_getquote ( $Sender )
$Sender

discussionController_beforeCommentDisplay_handler() public method

discussionController_beforeDiscussionDisplay_handler() public method

discussionController_beforeDiscussionRender_handler() public method

discussionController_getQuote_create() public method

public discussionController_getQuote_create ( $Sender, $Selector, boolean $Format = false )
$Sender
$Selector
$Format boolean

discussionController_render_before() public method

public discussionController_render_before ( $Sender )
$Sender

formatQuote() protected method

protected formatQuote ( $Type, $ID, &$QuoteData, boolean $Format = false )
$Type
$ID
$QuoteData
$Format boolean

pluginController_quotes_create() public method

public pluginController_quotes_create ( $Sender )
$Sender

postController_BeforeCommentRender_handler() public method

public postController_BeforeCommentRender_handler ( $Sender )
$Sender

postController_beforeCommentDisplay_handler() public method

postController_beforeDiscussionDisplay_handler() public method

postController_quote_create() public method

public postController_quote_create ( $Sender )
$Sender

postController_render_before() public method

public postController_render_before ( $Sender )
$Sender

profileController_afterAddSideMenu_handler() public method

public profileController_afterAddSideMenu_handler ( $Sender )
$Sender

profileController_quotes_create() public method

public profileController_quotes_create ( $Sender )
$Sender

quoteAuthorCallback() protected method

protected quoteAuthorCallback ( $Matches ) : string
$Matches
return string

renderQuotes() protected method

Render quotes.
protected renderQuotes ( $Sender )
$Sender

setup() public method

No setup.
public setup ( )

Property Details

$HandleRenderQuotes public_oe property

public bool $HandleRenderQuotes
return boolean