PHP Class FlaggingPlugin, vanilla

Inheritance: extends Gdn_Plugin
Mostrar archivo Open project: vanilla/vanilla

Public Methods

Method Description
controller_dismiss ( Gdn_Controller $Sender ) Dismiss a flag, then view index.
controller_index ( $Sender ) Get flagged content & show settings.
dashboardNavModule_init_handler ( $sender ) Add Flagging to Dashboard menu.
discussionController_afterDiscussionMeta_handler ( $Sender, $Args ) Add 'Flag' link for discussions.
discussionController_beforeCommentsRender_handler ( $Sender ) Add Flagging styling to Discussion.
discussionController_flag_create ( $Sender ) Handle flagging process in a discussion.
discussionController_insideCommentMeta_handler ( $Sender, $Args ) Add 'Flag' link for comments.
pluginController_flagging_create ( $Sender ) Create virtual Flagging controller.
profileController_afterPreferencesDefined_handler ( $Sender ) Let users with permission choose to receive Flagging emails.
setup ( )
structure ( ) Database changes needed for this plugin.
userModel_beforeSaveSerialized_handler ( $Sender ) Save Email.Flag preference list in config for easier access.

Protected Methods

Method Description
addFlagButton ( $Sender, $Args, $Context = 'comment' ) Output Flag link.

Method Details

addFlagButton() protected method

Output Flag link.
protected addFlagButton ( $Sender, $Args, $Context = 'comment' )

controller_dismiss() public method

Dismiss a flag, then view index.
public controller_dismiss ( Gdn_Controller $Sender )
$Sender Gdn_Controller

controller_index() public method

Default method of virtual Flagging controller.
public controller_index ( $Sender )

dashboardNavModule_init_handler() public method

Add Flagging to Dashboard menu.
public dashboardNavModule_init_handler ( $sender )

discussionController_afterDiscussionMeta_handler() public method

Add 'Flag' link for discussions.

discussionController_beforeCommentsRender_handler() public method

Add Flagging styling to Discussion.

discussionController_flag_create() public method

Handle flagging process in a discussion.

discussionController_insideCommentMeta_handler() public method

Add 'Flag' link for comments.

pluginController_flagging_create() public method

Create virtual Flagging controller.

profileController_afterPreferencesDefined_handler() public method

Let users with permission choose to receive Flagging emails.

setup() public method

public setup ( )

structure() public method

Database changes needed for this plugin.
public structure ( )

userModel_beforeSaveSerialized_handler() public method

Save Email.Flag preference list in config for easier access.