Свойство | Type | Description | |
---|---|---|---|
$DiscussionModel | DiscussionModel | ||
$Form | Gdn_Form | ||
$FormCollection | An associative array of form types and their locations. | ||
$ShowCategorySelector | Whether or not to show the category dropdown. | ||
$Uses | Models to include. |
Méthode | Description | |
---|---|---|
announceOptions ( ) : array | Get available announcement options for discussions. | |
comment ( integer $DiscussionID = '' ) | Create or update a comment. | |
comment2 ( integer $CommentID, boolean $Inserted = false ) | Triggers saving the extra info about a comment like notifications and unread totals. | |
discussion ( $CategoryUrlCode = '' ) | Create or update a discussion. | |
editComment ( integer $CommentID = '', integer $DraftID = '' ) | Edit a comment (wrapper for PostController::Comment). | |
editDiscussion ( integer $DiscussionID = '', integer $DraftID = '' ) | Edit a discussion (wrapper for PostController::Discussion). | |
index ( $CurrentFormName = 'discussion' ) | General "post" form, allows posting of any kind of form. Attach to PostController_AfterFormCollection_Handler. | |
initialize ( ) | Include CSS for all methods. | |
notifyNewDiscussion ( $DiscussionID ) |
Méthode | Description | |
---|---|---|
populateForm ( Gdn_Form $Form ) | Pre-populate the form with values from the query string. |
public announceOptions ( ) : array | ||
Résultat | array |
public discussion ( $CategoryUrlCode = '' ) |
public editComment ( integer $CommentID = '', integer $DraftID = '' ) | ||
$CommentID | integer | Unique ID of the comment to edit. |
$DraftID | integer | Unique ID of the draft to edit. |
public editDiscussion ( integer $DiscussionID = '', integer $DraftID = '' ) | ||
$DiscussionID | integer | Unique ID of the discussion to edit. |
$DraftID | integer | Unique ID of draft discussion to edit. |
public index ( $CurrentFormName = 'discussion' ) |
public initialize ( ) |
protected populateForm ( Gdn_Form $Form ) | ||
$Form | Gdn_Form |
public DiscussionModel $DiscussionModel | ||
Résultat | DiscussionModel |
public $FormCollection |
public $ShowCategorySelector |