index() public method

Default all discussions view: chronological by most recent comment.
Since: 2.0.0
public index ( integer $Page = false )
$Page integer Multiplied by PerPage option to determine offset.
Ejemplo n.º 1
0
 /**
  *
  *
  * @param DiscussionsController $sender Sending controller instance.
  * @param array $args Event arguments.
  */
 public function discussionsController_unanswered_create($sender, $args)
 {
     $sender->View = 'Index';
     $sender->setData('_PagerUrl', 'discussions/unanswered/{Page}');
     // Be sure to display every unanswered question (ie from groups)
     $categories = CategoryModel::categories();
     $this->EventArguments['Categories'] =& $categories;
     $this->fireEvent('UnansweredBeforeSetCategories');
     $sender->setCategoryIDs(array_keys($categories));
     $sender->index(val(0, $args, 'p1'));
     $this->InUnanswered = true;
 }