. */ /** * Counter column */ require_once(FILESYSTEMROOTPATH."include/list/TextColumn.php"); class CounterColumn extends TextColumn { protected $name; protected $header; /** * Constructor * * @param string name of the column (as provided in the parameter of getCellValue()) * @param string header value */ public function __construct($name, $header) { parent::__construct($name, $header); } public function getCellValue($rowNum, $row) { return $rowNum+1; } public function isSortable() { return false; } } ?>