PHP Class FlaggingPlugin, vanilla

Inheritance: extends Gdn_Plugin
Afficher le fichier Open project: vanilla/vanilla

Méthodes publiques

Méthode 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.

Méthodes protégées

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

Method Details

addFlagButton() protected méthode

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

controller_dismiss() public méthode

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

controller_index() public méthode

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

dashboardNavModule_init_handler() public méthode

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

discussionController_afterDiscussionMeta_handler() public méthode

Add 'Flag' link for discussions.

discussionController_beforeCommentsRender_handler() public méthode

Add Flagging styling to Discussion.

discussionController_flag_create() public méthode

Handle flagging process in a discussion.

discussionController_insideCommentMeta_handler() public méthode

Add 'Flag' link for comments.

pluginController_flagging_create() public méthode

Create virtual Flagging controller.

profileController_afterPreferencesDefined_handler() public méthode

Let users with permission choose to receive Flagging emails.

setup() public méthode

public setup ( )

structure() public méthode

Database changes needed for this plugin.
public structure ( )

userModel_beforeSaveSerialized_handler() public méthode

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