PHP 클래스 VotingPlugin, addons

상속: extends Gdn_Plugin
파일 보기 프로젝트 열기: vanilla/addons 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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