프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$Badges | boolean | array | ||
$Reactions | boolean | array |
메소드 | 설명 | |
---|---|---|
__construct ( ) | QnAPlugin constructor. | |
_commentOptions ( $sender, integer | string $commentID ) | ||
base_addonEnabled_handler ( $sender, array $args ) | Trigger reaction or badge creation if those addons are enabled later. | |
base_afterDiscussionFilters_handler ( $sender ) | New Html method of adding to discussion filters. | |
base_beforeCommentDisplay_handler ( $sender, array $args ) | ||
base_beforeDiscussionMeta_handler ( $sender, array $args ) | ||
base_commentInfo_handler ( $sender, array $args ) | ||
base_discussionOptions_handler ( CommentModel $sender, array $args ) | ||
base_discussionTypes_handler ( $sender, array $args ) | ||
base_render_before ( $sender, $args ) | Add Javascript. | |
categoriesController_render_before ( CategoriesController $sender ) | Add 'Ask a Question' button if using BigButtons. | |
commentModel_afterSaveComment_handler ( CommentModel $sender, array $args ) | Give point(s) to the current user if the right conditions are met. | |
commentModel_beforeNotification_handler ( CommentModel $sender, array $args ) | ||
commentModel_beforeUpdateCommentCount_handler ( CommentModel $sender, array $args ) | ||
discussionController_QnAOptions_create ( DiscussionController $sender, string | integer $discussionID = '', string | integer $commentID = '' ) | ||
discussionController_QnA_create ( DiscussionController $sender, array $args ) | ||
discussionController_afterCommentBody_handler ( DiscussionController $sender, array $args ) | Write the accept/reject buttons. | |
discussionController_afterDiscussion_handler ( DiscussionController $sender, array $args ) | ||
discussionController_beforeDiscussionRender_handler ( DiscussionController $sender, array $args ) | Modify flow of discussion by pinning accepted answers. | |
discussionController_commentOptions_handler ( DiscussionController $sender, array $args ) | ||
discussionController_render_before ( DiscussionController $sender ) | Add 'Ask a Question' button if using BigButtons. | |
discussionModel_beforeGet_handler ( DiscussionModel $sender, array $args ) | ||
discussionModel_beforeSaveDiscussion_handler ( DiscussionModel $sender, array $args ) | ||
discussionsController_afterDiscussionTabs_handler ( ) | Old Html method of adding to discussion filters. | |
discussionsController_beforeBuildPager_handler ( DiscussionsController $sender, array $args ) | ||
discussionsController_unansweredCount_create ( DiscussionsController $sender, array $args ) | Displays the amounts of unanswered questions. | |
discussionsController_unanswered_create ( DiscussionsController $sender, array $args ) | ||
discussionsController_unanswered_render ( DiscussionsController $sender, array $args ) | Displays the amounts of unanswered questions. | |
getUnansweredCount ( ) : integer | Return the number of unanswered questions. | |
messageController_afterGetLocationData_handler ( $sender, $args ) | Add 'New Question Form' location to Messages. | |
notificationsController_beforeInformNotifications_handler ( NotificationsController $sender, array $args ) | Notifies the current user when one of his questions have been answered. | |
postController_afterForms_handler ( PostController $sender ) | Add the question form to vanilla's post page. | |
postController_beforeDiscussionRender_handler ( PostController $sender ) | Override the PostController->Discussion() method before render to use our view instead. | |
postController_question_create ( PostController $sender, $CategoryUrlCode = '' ) | Create the new question method on post controller. | |
recalculateDiscussionQnA ( $discussion ) | ||
recalculateUserQnA ( string | integer $userID ) | ||
settingsController_QnA_create ( $sender ) | Create a method called "QnA" on the SettingController. | |
setup ( ) | Run once on enable. | |
structure ( ) | Database updates. |
메소드 | 설명 | |
---|---|---|
_discussionOptions ( $sender, integer | string $discussionID ) |
public _commentOptions ( $sender, integer | string $commentID ) | ||
$sender | controller instance. | |
$commentID | integer | string | Identifier of the comment. |
protected _discussionOptions ( $sender, integer | string $discussionID ) | ||
$sender | controller instance. | |
$discussionID | integer | string | Identifier of the discussion. |
public base_addonEnabled_handler ( $sender, array $args ) | ||
$sender | Sending controller instance. | |
$args | array | Event arguments. |
public base_afterDiscussionFilters_handler ( $sender ) | ||
$sender |
public base_beforeCommentDisplay_handler ( $sender, array $args ) | ||
$sender | Sending controller instance. | |
$args | array | Event arguments. |
public base_beforeDiscussionMeta_handler ( $sender, array $args ) | ||
$sender | Sending controller instance. | |
$args | array | Event arguments. |
public base_commentInfo_handler ( $sender, array $args ) | ||
$sender | Sending controller instance. | |
$args | array | Event arguments. |
public base_discussionOptions_handler ( CommentModel $sender, array $args ) | ||
$sender | CommentModel | Sending controller instance. |
$args | array | Event arguments. |
public base_discussionTypes_handler ( $sender, array $args ) | ||
$sender | Sending controller instance. | |
$args | array | Event arguments. |
public base_render_before ( $sender, $args ) | ||
$sender | ||
$args |
public categoriesController_render_before ( CategoriesController $sender ) | ||
$sender | CategoriesController | Sending controller instance. |
public commentModel_afterSaveComment_handler ( CommentModel $sender, array $args ) | ||
$sender | CommentModel | Sending controller instance. |
$args | array | Event arguments. |
public commentModel_beforeNotification_handler ( CommentModel $sender, array $args ) | ||
$sender | CommentModel | Sending controller instance. |
$args | array | Event arguments. |
public commentModel_beforeUpdateCommentCount_handler ( CommentModel $sender, array $args ) | ||
$sender | CommentModel | Sending controller instance. |
$args | array | Event arguments. |
public discussionController_QnAOptions_create ( DiscussionController $sender, string | integer $discussionID = '', string | integer $commentID = '' ) | ||
$sender | DiscussionController | Sending controller instance. |
$discussionID | string | integer | Identifier of the discussion |
$commentID | string | integer | Identifier of the comment. |
public discussionController_QnA_create ( DiscussionController $sender, array $args ) | ||
$sender | DiscussionController | Sending controller instance. |
$args | array | Event arguments. |
public discussionController_afterCommentBody_handler ( DiscussionController $sender, array $args ) | ||
$sender | DiscussionController | Sending controller instance. |
$args | array | Event arguments. |
public discussionController_afterDiscussion_handler ( DiscussionController $sender, array $args ) | ||
$sender | DiscussionController | Sending controller instance. |
$args | array | Event arguments. |
public discussionController_beforeDiscussionRender_handler ( DiscussionController $sender, array $args ) | ||
$sender | DiscussionController | Sending controller instance. |
$args | array | Event arguments. |
public discussionController_commentOptions_handler ( DiscussionController $sender, array $args ) | ||
$sender | DiscussionController | Sending controller instance. |
$args | array | Event arguments. |
public discussionController_render_before ( DiscussionController $sender ) | ||
$sender | DiscussionController | Sending controller instance. |
public discussionModel_beforeGet_handler ( DiscussionModel $sender, array $args ) | ||
$sender | DiscussionModel | Sending controller instance. |
$args | array | Event arguments. |
public discussionModel_beforeSaveDiscussion_handler ( DiscussionModel $sender, array $args ) | ||
$sender | DiscussionModel | Sending controller instance. |
$args | array | Event arguments. |
public discussionsController_beforeBuildPager_handler ( DiscussionsController $sender, array $args ) | ||
$sender | DiscussionsController | Sending controller instance. |
$args | array | Event arguments. |
public discussionsController_unansweredCount_create ( DiscussionsController $sender, array $args ) | ||
$sender | DiscussionsController | Sending controller instance. |
$args | array | Event arguments. |
public discussionsController_unanswered_create ( DiscussionsController $sender, array $args ) | ||
$sender | DiscussionsController | Sending controller instance. |
$args | array | Event arguments. |
public discussionsController_unanswered_render ( DiscussionsController $sender, array $args ) | ||
$sender | DiscussionsController | Sending controller instance. |
$args | array | Event arguments. |
public getUnansweredCount ( ) : integer | ||
리턴 | integer |
public messageController_afterGetLocationData_handler ( $sender, $args ) |
public notificationsController_beforeInformNotifications_handler ( NotificationsController $sender, array $args ) | ||
$sender | NotificationsController | Sending controller instance. |
$args | array | Event arguments. |
public postController_afterForms_handler ( PostController $sender ) | ||
$sender | PostController | Sending controller instance. |
public postController_beforeDiscussionRender_handler ( PostController $sender ) | ||
$sender | PostController | Sending controller instance. |
public postController_question_create ( PostController $sender, $CategoryUrlCode = '' ) | ||
$sender | PostController | Sending controller instance. |
public recalculateDiscussionQnA ( $discussion ) | ||
$discussion | A discussion. |
public recalculateUserQnA ( string | integer $userID ) | ||
$userID | string | integer | User identifier |
public settingsController_QnA_create ( $sender ) | ||
$sender | Sending controller instance |