PHP Class CivilTonguePlugin, addons

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

Public Properties

Property Type Description
$Replacement mixed

Public Methods

Method Description
__construct ( )
activityController_render_before ( Controller $Sender, array $Args ) Clean up activities and activity comments.
base_filterContent_handler ( $Sender, $Args )
base_groupLoaded_handler ( SettingsController $sender, array $args ) Replace bad words in the group view and the events list
categoriesController_discussions_render ( $Sender, $Args ) Cleanup discussions if category layout is Mixed
categoriesController_render_before ( CategoriesController $Sender ) Clean up the last title.
conversationMessageModel_afterAdd_handler ( ConversationMessageModel $sender, array &$args ) Filter content in converation message notifications.
conversationModel_afterAdd_handler ( ConversationModel $sender, array &$args ) Filter content in conversation notifications.
discussionController_render_before ( DiscussionController $Sender, array $Args ) Censor words in discussions / comments.
discussionsController_render_before ( $Sender, $Args )
eventController_eventLoaded_handler ( SettingsController $sender, array $args ) Replace bad words in the event view
eventsController_eventsLoaded_handler ( SettingsController $sender, array $args ) Replace bad words in the events list
gdn_email_beforeSendMail_handler ( Gdn_Email $Sender ) Cleanup Emails.
getpatterns ( ) : array
groupController_groupEventsLoaded_handler ( SettingsController $sender, array $args ) Replace bad words in the event list of a group
groupsController_beforeBrowseGroupList_handler ( SettingsController $sender, array $args ) Replace bad words in the group browsing list
groupsController_beforeGroupLists_handler ( SettingsController $sender, array $args ) Replace bad words in the group list
messagesController_beforeMessagesAll_handler ( $Sender, $Args ) Cleanup private messages displayed on the messages page.
messagesController_beforeMessagesPopin_handler ( $Sender, $Args ) Cleanup private messages displayed in the flyout.
messagesController_beforeMessages_handler ( $Sender, $Args ) Cleanup private messages displayed on the messages page.
notificationsController_informNotifications_handler ( $Sender, &$Args ) Cleanup Inform messages.
pluginController_tongue_create ( $Sender, array $Args = [] )
pollModule_afterLoadPoll_handler ( PollModule $sender, array &$args ) This view gets loaded in via ajax. We need to filter with an event before it's rendered.
profileController_render_before ( $Sender, $Args )
replace ( $Text ) : mixed
rootController_bestOf_render ( RootController $Sender ) Clean up the search results.
searchController_render_before ( SearchController $Sender ) Clean up the search results.
setup ( )
utilityController_civilPatterns_create ( $Sender )

Protected Methods

Method Description
sanitizeCategories ( array &$categories ) Recursively replace the LastTitle field in a category tree.

Method Details

__construct() public method

public __construct ( )

activityController_render_before() public method

Clean up activities and activity comments.
public activityController_render_before ( Controller $Sender, array $Args )
$Sender Controller
$Args array

base_filterContent_handler() public method

public base_filterContent_handler ( $Sender, $Args )
$Sender
$Args

base_groupLoaded_handler() public method

Vanilla's proprietary group plugin hook.
public base_groupLoaded_handler ( SettingsController $sender, array $args )
$sender SettingsController Sending controller instance
$args array Event's arguments

categoriesController_discussions_render() public method

Cleanup discussions if category layout is Mixed
public categoriesController_discussions_render ( $Sender, $Args )
$Sender
$Args

categoriesController_render_before() public method

Clean up the last title.
public categoriesController_render_before ( CategoriesController $Sender )
$Sender CategoriesController

conversationMessageModel_afterAdd_handler() public method

Filter content in converation message notifications.
public conversationMessageModel_afterAdd_handler ( ConversationMessageModel $sender, array &$args )
$sender ConversationMessageModel The sending object.
$args array

conversationModel_afterAdd_handler() public method

Filter content in conversation notifications.
public conversationModel_afterAdd_handler ( ConversationModel $sender, array &$args )
$sender ConversationModel The sending object.
$args array

discussionController_render_before() public method

Censor words in discussions / comments.
public discussionController_render_before ( DiscussionController $Sender, array $Args )
$Sender DiscussionController Sending Controller.
$Args array Sending arguments.

discussionsController_render_before() public method

public discussionsController_render_before ( $Sender, $Args )
$Sender
$Args

eventController_eventLoaded_handler() public method

Vanilla's proprietary group plugin hook.
public eventController_eventLoaded_handler ( SettingsController $sender, array $args )
$sender SettingsController Sending controller instance
$args array Event's arguments

eventsController_eventsLoaded_handler() public method

Vanilla's proprietary group plugin hook.
public eventsController_eventsLoaded_handler ( SettingsController $sender, array $args )
$sender SettingsController Sending controller instance
$args array Event's arguments

gdn_email_beforeSendMail_handler() public method

Cleanup Emails.
public gdn_email_beforeSendMail_handler ( Gdn_Email $Sender )
$Sender Gdn_Email

getpatterns() public method

public getpatterns ( ) : array
return array

groupController_groupEventsLoaded_handler() public method

Vanilla's proprietary group plugin hook.
public groupController_groupEventsLoaded_handler ( SettingsController $sender, array $args )
$sender SettingsController Sending controller instance
$args array Event's arguments

groupsController_beforeBrowseGroupList_handler() public method

Vanilla's proprietary group plugin hook.
public groupsController_beforeBrowseGroupList_handler ( SettingsController $sender, array $args )
$sender SettingsController Sending controller instance
$args array Event's arguments

groupsController_beforeGroupLists_handler() public method

Vanilla's proprietary group plugin hook.
public groupsController_beforeGroupLists_handler ( SettingsController $sender, array $args )
$sender SettingsController Sending controller instance
$args array Event's arguments

messagesController_beforeMessagesAll_handler() public method

Cleanup private messages displayed on the messages page.
public messagesController_beforeMessagesAll_handler ( $Sender, $Args )
$Sender
$Args

messagesController_beforeMessagesPopin_handler() public method

Cleanup private messages displayed in the flyout.
public messagesController_beforeMessagesPopin_handler ( $Sender, $Args )
$Sender
$Args

messagesController_beforeMessages_handler() public method

Cleanup private messages displayed on the messages page.
public messagesController_beforeMessages_handler ( $Sender, $Args )
$Sender
$Args

notificationsController_informNotifications_handler() public method

Cleanup Inform messages.
public notificationsController_informNotifications_handler ( $Sender, &$Args )
$Sender
$Args

pluginController_tongue_create() public method

public pluginController_tongue_create ( $Sender, array $Args = [] )
$Sender
$Args array

pollModule_afterLoadPoll_handler() public method

This view gets loaded in via ajax. We need to filter with an event before it's rendered.
public pollModule_afterLoadPoll_handler ( PollModule $sender, array &$args )
$sender PollModule Poll Module.
$args array Sending arguments.

profileController_render_before() public method

public profileController_render_before ( $Sender, $Args )
$Sender
$Args

replace() public method

public replace ( $Text ) : mixed
$Text
return mixed

rootController_bestOf_render() public method

Clean up the search results.
public rootController_bestOf_render ( RootController $Sender )
$Sender RootController

sanitizeCategories() protected method

Recursively replace the LastTitle field in a category tree.
protected sanitizeCategories ( array &$categories )
$categories array

searchController_render_before() public method

Clean up the search results.
public searchController_render_before ( SearchController $Sender )
$Sender SearchController

setup() public method

public setup ( )

utilityController_civilPatterns_create() public method

public utilityController_civilPatterns_create ( $Sender )
$Sender

Property Details

$Replacement public property

public mixed $Replacement
return mixed