PHP Class DashboardHooks, vanilla

Inheritance: implements Gdn_IPlugin
Show file Open project: vanilla/vanilla Class Usage Examples

Public Methods

Method Description
base_beforeFetchMaster_handler ( Gdn_Controller $sender ) Checks if the user is previewing a theme and, if so, updates the default master view.
base_render_before ( Gdn_Controller $Sender ) Fire before every page render.
dashboardNavModule_init_handler ( $sender ) Setup dashboard navigation.
gdn_dispatcher_appStartup_handler ( Gdn_Dispatcher $Sender ) Set P3P header because IE won't allow cookies thru the iFrame without it.
gdn_dispatcher_methodNotFound_handler ( Gdn_Controller $sender, array $args ) Clear user navigation preferences if we can't find the explicit method on the controller.
gdn_dispatcher_sendHeaders_handler ( Gdn_Dispatcher $sender )
rootController_sso_create ( RootController $Sender, string $Target = '' ) Method for plugins that want a friendly /sso method to hook into.
settingsController_render_before ( $sender ) Aggressively prompt users to upgrade PHP version.
siteNavModule_init_handler ( SiteNavModule $sender )
updateModel_afterStructure_handler ( $sender ) After executing /settings/utility/update check if any role permissions have been changed, if not reset all the permissions on the roles.

Method Details

base_beforeFetchMaster_handler() public method

Checks if the user is previewing a theme and, if so, updates the default master view.
public base_beforeFetchMaster_handler ( Gdn_Controller $sender )
$sender Gdn_Controller

base_render_before() public method

Fire before every page render.
public base_render_before ( Gdn_Controller $Sender )
$Sender Gdn_Controller

dashboardNavModule_init_handler() public method

Setup dashboard navigation.
public dashboardNavModule_init_handler ( $sender )
$sender

gdn_dispatcher_appStartup_handler() public method

This must be done in the Dispatcher because of PrivateCommunity. That precludes using Controller->SetHeader. This is done so comment & forum embedding can work in old IE.
public gdn_dispatcher_appStartup_handler ( Gdn_Dispatcher $Sender )
$Sender Gdn_Dispatcher

gdn_dispatcher_methodNotFound_handler() public method

Clear user navigation preferences if we can't find the explicit method on the controller.
public gdn_dispatcher_methodNotFound_handler ( Gdn_Controller $sender, array $args )
$sender Gdn_Controller
$args array Event arguments. We can expect a 'PathArgs' key here.

gdn_dispatcher_sendHeaders_handler() public method

public gdn_dispatcher_sendHeaders_handler ( Gdn_Dispatcher $sender )
$sender Gdn_Dispatcher

rootController_sso_create() public method

Method for plugins that want a friendly /sso method to hook into.
public rootController_sso_create ( RootController $Sender, string $Target = '' )
$Sender RootController
$Target string The url to redirect to after sso.

settingsController_render_before() public method

Aggressively prompt users to upgrade PHP version.
public settingsController_render_before ( $sender )
$sender

siteNavModule_init_handler() public method

public siteNavModule_init_handler ( SiteNavModule $sender )
$sender SiteNavModule

updateModel_afterStructure_handler() public method

After executing /settings/utility/update check if any role permissions have been changed, if not reset all the permissions on the roles.
public updateModel_afterStructure_handler ( $sender )
$sender