discussion() public method

Create or update a discussion.
Since: 2.0.0
public discussion ( $CategoryUrlCode = '' )
Exemplo n.º 1
0
 /**
  * Create the new question method on post controller.
  *
  * @param PostController $sender Sending controller instance.
  */
 public function postController_question_create($sender, $CategoryUrlCode = '')
 {
     // Create & call PostController->Discussion()
     $sender->View = PATH_PLUGINS . '/QnA/views/post.php';
     $sender->setData('Type', 'Question');
     $sender->discussion($CategoryUrlCode);
 }