PHP Класс VotingPlugin, addons

Наследование: extends Gdn_Plugin
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_CommentSort

Открытые методы

Метод Описание
AddJsCss ( $Sender ) Add JS & CSS to the page.
Base_BeforeDiscussionContent_Handler ( $Sender ) Add the "Stats" buttons to the discussion list.
Base_BeforeDiscussionTabs_Handler ( $Sender ) Add the "Popular Questions" tab.
Base_GetAppSettingsMenuItems_Handler ( $Sender ) Admin Toggle to turn Voting on/off
CategoriesController_Render_Before ( $Sender )
CommentModel_AfterConstruct_Handler ( CommentModel $CommentModel ) Sort the comments by popularity if necessary
CommentSort ( )
DiscussionController_AfterCommentMeta_Handler ( $Sender )
DiscussionController_BeforeCommentDisplay_Handler ( $Sender ) Insert sorting tabs after first comment.
DiscussionController_Render_Before ( $Sender ) Add the vote.js file to discussions page, and handle sorting of answers.
DiscussionController_VoteComment_Create ( $Sender ) Increment/decrement comment scores
DiscussionController_VoteDiscussion_Create ( $Sender ) Increment/decrement discussion scores
DiscussionModel_AfterDiscussionSummaryQuery_Handler ( $Sender ) Grab the score field whenever the discussions are queried.
DiscussionsController_AfterDiscussionFilters_Handler ( $Sender )
DiscussionsController_Popular_Create ( $Sender ) Load popular discussions.
DiscussionsController_Render_Before ( $Sender )
OnDisable ( ) If turning off scoring, make the forum go back to the traditional "jump to what I last read" functionality.
PostController_AfterCommentMeta_Handler ( $Sender ) Insert the voting html on comments in a discussion.
PostController_Render_Before ( $Sender ) Add voting css to post controller.
ProfileController_Render_Before ( $Sender )
SettingsController_ToggleVoting_Create ( $Sender )
SettingsController_Voting_Create ( $Sender )
Setup ( ) Add a field to the db for storing the "State" of a question.

Описание методов

AddJsCss() публичный Метод

Add JS & CSS to the page.
public AddJsCss ( $Sender )

Base_BeforeDiscussionContent_Handler() публичный Метод

Add the "Stats" buttons to the discussion list.

Base_BeforeDiscussionTabs_Handler() публичный Метод

Add the "Popular Questions" tab.

Base_GetAppSettingsMenuItems_Handler() публичный Метод

Admin Toggle to turn Voting on/off

CategoriesController_Render_Before() публичный Метод

CommentModel_AfterConstruct_Handler() публичный Метод

Sort the comments by popularity if necessary
public CommentModel_AfterConstruct_Handler ( CommentModel $CommentModel )
$CommentModel CommentModel

CommentSort() публичный статический Метод

public static CommentSort ( )

DiscussionController_AfterCommentMeta_Handler() публичный Метод

DiscussionController_BeforeCommentDisplay_Handler() публичный Метод

Insert sorting tabs after first comment.

DiscussionController_Render_Before() публичный Метод

Add the vote.js file to discussions page, and handle sorting of answers.

DiscussionController_VoteComment_Create() публичный Метод

Increment/decrement comment scores

DiscussionController_VoteDiscussion_Create() публичный Метод

Increment/decrement discussion scores

DiscussionModel_AfterDiscussionSummaryQuery_Handler() публичный Метод

Grab the score field whenever the discussions are queried.

DiscussionsController_AfterDiscussionFilters_Handler() публичный Метод

DiscussionsController_Render_Before() публичный Метод

OnDisable() публичный Метод

If turning off scoring, make the forum go back to the traditional "jump to what I last read" functionality.
public OnDisable ( )

PostController_AfterCommentMeta_Handler() публичный Метод

Insert the voting html on comments in a discussion.

PostController_Render_Before() публичный Метод

Add voting css to post controller.
public PostController_Render_Before ( $Sender )

ProfileController_Render_Before() публичный Метод

public ProfileController_Render_Before ( $Sender )

SettingsController_ToggleVoting_Create() публичный Метод

SettingsController_Voting_Create() публичный Метод

Setup() публичный Метод

Add a field to the db for storing the "State" of a question.
public Setup ( )

Описание свойств

$_CommentSort защищенное статическое свойство

protected static $_CommentSort