PHP 클래스 VanillaHooks, vanilla

상속: implements Gdn_IPlugin
파일 보기 프로젝트 열기: vanilla/vanilla

공개 메소드들

메소드 설명
base_render_before ( Gdn_Controller $sender ) Adds 'Discussion' item to menu.
dashboardNavModule_init_handler ( DashboardNavModule $sender ) Adds items to Dashboard menu.
dbaController_countJobs_handler ( DbaController $Sender ) Counter rebuilding.
deleteUserData ( integer $userID, array $options = [], &$data = null ) Delete all of the Vanilla related information for a specific user.
discussionController_beforeCommentBody_handler ( $sender )
gdn_statistics_tick_handler ( $Sender, $Args ) Discussion view counter.
permissionModel_defaultPermissions_handler ( PermissionModel $Sender ) Provide default permissions for roles, based on the value in their Type column.
profileController_CustomNotificationPreferences_Handler ( ProfileController $Sender ) Add the advanced notifications view to profiles.
profileController_addProfileTabs_handler ( object $Sender ) Adds 'Discussions' tab to profiles and adds CSS & JS files to their head.
profileController_afterPreferencesDefined_handler ( ProfileController $Sender ) Adds email notification options to profiles.
profileController_comments_create ( ProfileController $Sender, $UserReference = '', $Username = '', $Page = '', $UserID = '' ) Creates virtual 'Comments' method in ProfileController.
profileController_discussions_create ( ProfileController $Sender, $UserReference = '', $Username = '', $Page = '', $UserID = '' ) Creates virtual 'Discussions' method in ProfileController.
searchModel_Search_Handler ( object $Sender ) Add the discussion search to the search.
settingsController_defineAdminPermissions_handler ( object $Sender ) Makes sure forum administrators can see the dashboard admin pages.
setup ( ) Automatically executed when application is enabled.
siteNavModule_init_handler ( NavModule $sender )
userModel_beforeDeleteUser_handler ( UserModel $Sender ) Remove Vanilla data when deleting a user.
userModel_getCategoryViewPermission_create ( $Sender ) : boolean Check whether a user has access to view discussions in a particular category.

메소드 상세

base_render_before() 공개 메소드

'base_render_before' will trigger before every pageload across apps. If you abuse this hook, Tim will throw a Coke can at your head.
부터: 2.0.0
public base_render_before ( Gdn_Controller $sender )
$sender Gdn_Controller The sending controller object.

dashboardNavModule_init_handler() 공개 메소드

Adds items to Dashboard menu.
부터: 2.0.0
public dashboardNavModule_init_handler ( DashboardNavModule $sender )
$sender DashboardNavModule

dbaController_countJobs_handler() 공개 메소드

Counter rebuilding.
public dbaController_countJobs_handler ( DbaController $Sender )
$Sender DbaController

deleteUserData() 공개 메소드

Delete all of the Vanilla related information for a specific user.
부터: 2.1
public deleteUserData ( integer $userID, array $options = [], &$data = null )
$userID integer The ID of the user to delete.
$options array An array of options: - DeleteMethod: One of delete, wipe, or NULL

discussionController_beforeCommentBody_handler() 공개 메소드

gdn_statistics_tick_handler() 공개 메소드

Discussion view counter.
public gdn_statistics_tick_handler ( $Sender, $Args )
$Sender
$Args

permissionModel_defaultPermissions_handler() 공개 메소드

Provide default permissions for roles, based on the value in their Type column.
public permissionModel_defaultPermissions_handler ( PermissionModel $Sender )
$Sender PermissionModel Instance of permission model that fired the event

profileController_CustomNotificationPreferences_Handler() 공개 메소드

Add the advanced notifications view to profiles.
public profileController_CustomNotificationPreferences_Handler ( ProfileController $Sender )
$Sender ProfileController

profileController_addProfileTabs_handler() 공개 메소드

Adds 'Discussions' tab to profiles and adds CSS & JS files to their head.
부터: 2.0.0
public profileController_addProfileTabs_handler ( object $Sender )
$Sender object ProfileController.

profileController_afterPreferencesDefined_handler() 공개 메소드

Adds email notification options to profiles.
부터: 2.0.0
public profileController_afterPreferencesDefined_handler ( ProfileController $Sender )
$Sender ProfileController

profileController_comments_create() 공개 메소드

Creates virtual 'Comments' method in ProfileController.
부터: 2.0.0
public profileController_comments_create ( ProfileController $Sender, $UserReference = '', $Username = '', $Page = '', $UserID = '' )
$Sender ProfileController ProfileController.

profileController_discussions_create() 공개 메소드

Creates virtual 'Discussions' method in ProfileController.
부터: 2.0.0
public profileController_discussions_create ( ProfileController $Sender, $UserReference = '', $Username = '', $Page = '', $UserID = '' )
$Sender ProfileController ProfileController.

searchModel_Search_Handler() 공개 메소드

Add the discussion search to the search.
부터: 2.0.0
public searchModel_Search_Handler ( object $Sender )
$Sender object SearchModel

settingsController_defineAdminPermissions_handler() 공개 메소드

Makes sure forum administrators can see the dashboard admin pages.
부터: 2.0.0
public settingsController_defineAdminPermissions_handler ( object $Sender )
$Sender object SettingsController.

setup() 공개 메소드

Automatically executed when application is enabled.
부터: 2.0.0
public setup ( )

siteNavModule_init_handler() 공개 메소드

public siteNavModule_init_handler ( NavModule $sender )
$sender NavModule

userModel_beforeDeleteUser_handler() 공개 메소드

Remove Vanilla data when deleting a user.
부터: 2.0.0
public userModel_beforeDeleteUser_handler ( UserModel $Sender )
$Sender UserModel UserModel.

userModel_getCategoryViewPermission_create() 공개 메소드

Check whether a user has access to view discussions in a particular category.
부터: 2.0.18
public userModel_getCategoryViewPermission_create ( $Sender ) : boolean
$Sender UserModel.
리턴 boolean Whether user has permission.