Overview

Packages

  • None
  • Yaga

Classes

  • ActedModel
  • ActionController
  • ActionModel
  • AwardCombo
  • BadgeAwardModel
  • BadgeController
  • BadgeModel
  • BadgesController
  • BadgesModule
  • BestController
  • BestFilterModule
  • CakeDayPost
  • CommentCount
  • CommentMarathon
  • DiscussionBodyLength
  • DiscussionCategory
  • DiscussionCount
  • DiscussionPageCount
  • HasMentioned
  • HolidayVisit
  • LeaderBoardModule
  • LengthOfService
  • ManualAward
  • NecroPost
  • NewbieComment
  • PhotoExists
  • PostCount
  • PostReactions
  • QnAAnserCount
  • RankController
  • RankModel
  • ReactController
  • ReactionCount
  • ReactionModel
  • ReflexComment
  • RulesController
  • SocialConnection
  • Yaga
  • YagaController
  • YagaHooks

Interfaces

  • YagaRule
  • Overview
  • Package
  • Class
  • Tree
  • Todo
  • Download

Class YagaHooks

A collection of hooks that are enabled when Yaga is.

YagaHooks implements Gdn_IPlugin
Package: Yaga
Since: 1.0
Located at settings/class.hooks.php
Methods summary
public
# SettingsController_Yaga_Create( SettingsController $Sender )

Redirect any old links to proper settings page permanently

Redirect any old links to proper settings page permanently

Parameters

$Sender
SettingsController
$Sender
public
# SettingsController_AfterRenderAsset_Handler( SettingsController $Sender )

Add Simple stats page to dashboard index

Add Simple stats page to dashboard index

Parameters

$Sender
SettingsController
$Sender
public
# Base_GetAppSettingsMenuItems_Handler( Object $Sender )

Add the settings page links

Add the settings page links

Parameters

$Sender
Object
$Sender
public boolean
# Base_AfterDiscussionFilters_Handler( mixed $Sender )

Add a Best Content item to the discussion filters module

Add a Best Content item to the discussion filters module

Parameters

$Sender
mixed
$Sender

Returns

boolean
public
# ProfileController_AfterUserInfo_Handler( ProfileController $Sender )

Display the reaction counts on the profile page

Display the reaction counts on the profile page

Parameters

$Sender
ProfileController
$Sender
public
# UserInfoModule_OnBasicInfo_Handler( UserInfoModule $Sender )

Add the badge count into the user info module

Add the badge count into the user info module

Parameters

$Sender
UserInfoModule
$Sender
public
# ProfileController_Reactions_Create( ProfileController $Sender, integer $UserReference = '', string $Username = '', integer $ActionID = '', integer $Page = 0 )

This method shows the latest discussions/comments a user has posted that received the specified action

This method shows the latest discussions/comments a user has posted that received the specified action

Parameters

$Sender
ProfileController
$Sender
$UserReference
integer
$UserReference
$Username
string
$Username
$ActionID
integer
$ActionID
$Page
integer
$Page
public
# ProfileController_Best_Create( ProfileController $Sender, integer $UserReference = '', string $Username = '', integer $Page = 0 )

This method shows the highest scoring discussions/comments a user has ever posted

This method shows the highest scoring discussions/comments a user has ever posted

Parameters

$Sender
ProfileController
$Sender
$UserReference
integer
$UserReference
$Username
string
$Username
$Page
integer
$Page
public
# ProfileController_AddProfileTabs_Handler( ProfileController $Sender )

Add a best content tab on a user's profile

Add a best content tab on a user's profile

Parameters

$Sender
ProfileController
$Sender
public
# UserModel_AfterSetField_Handler( UserModel $Sender )

Check for rank progress when the user model gets updated

Check for rank progress when the user model gets updated

Parameters

$Sender
UserModel
$Sender
protected
# _RankProgression( integer $UserID )

Update a user's rank id if they qualify

Update a user's rank id if they qualify

Parameters

$UserID
integer
$UserID
public
# ProfileController_AfterPreferencesDefined_Handler( ProfileController $Sender )

Add the badge and rank notification options

Add the badge and rank notification options

Parameters

$Sender
ProfileController
$Sender
public
# ProfileController_BeforeProfileOptions_Handler( ProfileController $Sender )

Add the Award Badge and Promote options to the profile controller

Add the Award Badge and Promote options to the profile controller

Parameters

$Sender
ProfileController
$Sender
public
# DiscussionController_AfterDiscussionBody_Handler( DiscussionController $Sender )

Display a record of reactions after the first post

Display a record of reactions after the first post

Parameters

$Sender
DiscussionController
$Sender
public
# DiscussionController_AfterCommentBody_Handler( DiscussionController $Sender )

Display a record of reactions after comments

Display a record of reactions after comments

Parameters

$Sender
DiscussionController
$Sender
public
# DiscussionController_AfterReactions_Handler( DiscussionController $Sender )

Add action list to discussion items

Add action list to discussion items

Parameters

$Sender
DiscussionController
$Sender
public
# ActivityController_AfterActivityBody_Handler( ActivityController $Sender )

Add the action list to any activity items that can be commented on

Add the action list to any activity items that can be commented on

Parameters

$Sender
ActivityController
$Sender
public
# UserModel_AfterGetSession_Handler( UserModel $Sender )

Apply any applicable rank perks when the session first starts.

Apply any applicable rank perks when the session first starts.

Parameters

$Sender
UserModel
$Sender
public
# ProfileController_Render_Before( ProfileController $Sender )

Insert JS and CSS files into the appropiate controllers

Insert JS and CSS files into the appropiate controllers

Parameters

$Sender
ProfileController
$Sender
public
# DiscussionController_Render_Before( DiscussionController $Sender )

Insert JS and CSS files into the appropiate controllers

Insert JS and CSS files into the appropiate controllers

Parameters

$Sender
DiscussionController
$Sender
public
# CommentController_Render_Before( CommentController $Sender )

Insert JS and CSS files into the appropiate controllers

Insert JS and CSS files into the appropiate controllers

Parameters

$Sender
CommentController
$Sender
public
# ActivityController_Render_Before( ActivityController $Sender )

Insert JS and CSS files into the appropiate controllers

Insert JS and CSS files into the appropiate controllers

Parameters

$Sender
ActivityController
$Sender
public
# Gdn_Dispatcher_AppStartup_Handler( Gdn_Dispatcher $Sender )

Check for Badge Awards

Check for Badge Awards

Parameters

$Sender
Gdn_Dispatcher
$Sender
public
# Base_AfterGetSession_Handler( mixed $Sender )

Check for Badge Awards

Check for Badge Awards

Parameters

$Sender
mixed
$Sender
public
# CommentModel_AfterSaveComment_Handler( CommentModel $Sender )

Check for Badge Awards

Check for Badge Awards

Parameters

$Sender
CommentModel
$Sender
public
# DiscussionModel_AfterSaveDiscussion_Handler( DiscussionModel $Sender )

Check for Badge Awards

Check for Badge Awards

Parameters

$Sender
DiscussionModel
$Sender
public
# ActivityModel_BeforeSaveComment_Handler( ActivityModel $Sender )

Check for Badge Awards

Check for Badge Awards

Parameters

$Sender
ActivityModel
$Sender
public
# CommentModel_BeforeNotification_Handler( CommentModel $Sender )

Check for Badge Awards

Check for Badge Awards

Parameters

$Sender
CommentModel
$Sender
public
# DiscussionModel_BeforeNotification_Handler( DiscussionModel $Sender )

Check for Badge Awards

Check for Badge Awards

Parameters

$Sender
DiscussionModel
$Sender
public
# Base_AfterSignIn_Handler( mixed $Sender )

Check for Badge Awards

Check for Badge Awards

Parameters

$Sender
mixed
$Sender
public
# UserModel_AfterSave_Handler( UserModel $Sender )

Check for Badge Awards

Check for Badge Awards

Parameters

$Sender
UserModel
$Sender
public
# ReactionModel_AfterReactionSave_Handler( ReactionModel $Sender )

Check for Badge Awards

Check for Badge Awards

Parameters

$Sender
ReactionModel
$Sender
public
# BadgeAwardModel_AfterBadgeAward_Handler( BadgeAwardModel $Sender )

Check for Badge Awards

Check for Badge Awards

Parameters

$Sender
BadgeAwardModel
$Sender
public
# Base_AfterConnection_Handler( mixed $Sender )

Check for Badge Awards

Check for Badge Awards

Parameters

$Sender
mixed
$Sender
public
# Base_Render_Before( Gdn_Controller $Sender )

Add global Yaga resources to all dashboard pages

Add global Yaga resources to all dashboard pages

Parameters

$Sender
Gdn_Controller
$Sender
protected
# DeleteUserData( integer $UserID, array $Options = array(), array & $Data = NULL )

Delete all of the Yaga related information for a specific user.

Delete all of the Yaga related information for a specific user.

Parameters

$UserID
integer
$UserID The ID of the user to delete.
$Options
array
$Options An array of options: - DeleteMethod: One of delete, wipe, or NULL
$Data
array
$Data

Since

1.0
public
# UserModel_BeforeDeleteUser_Handler( UserModel $Sender )

Remove Yaga data when deleting a user.

Remove Yaga data when deleting a user.

Parameters

$Sender
UserModel
$Sender UserModel.

Since

1.0
public
# DbaController_CountJobs_Handler( DbaController $Sender )

Add update routines to the DBA controller

Add update routines to the DBA controller

Parameters

$Sender
DbaController
$Sender
public
# Setup( )

Run the structure and stub scripts if necessary when the application is enabled.

Run the structure and stub scripts if necessary when the application is enabled.

Yaga API documentation generated by ApiGen 2.8.0