ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilForumStatisticsTableGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once 'Services/Table/classes/class.ilTable2GUI.php';
5 
15 {
22  public function __construct($a_parent_obj, $a_parent_cmd = "")
23  {
24  parent::__construct($a_parent_obj, $a_parent_cmd);
25 
26  $this->setRowTemplate('tpl.statistics_table_row.html', 'Modules/Forum');
27  $this->addColumn($this->lng->txt('frm_statistics_ranking'), 'ranking', '25%');
28  $this->addColumn($this->lng->txt('login'), 'login', '25%');
29  $this->addColumn($this->lng->txt('lastname'), 'lastname', '25%');
30  $this->addColumn($this->lng->txt('firstname'), 'firstname', '25%');
31 
32  $this->setDefaultOrderField('ranking');
33  $this->setDefaultOrderDirection('desc');
34 
35  $this->enable('hits');
36  $this->enable('sort');
37  }
38 
46  public function numericOrdering($a_field)
47  {
48  switch($a_field)
49  {
50  case 'ranking':
51  return true;
52 
53  default:
54  return false;
55  }
56  }
57 }
58 ?>