. */ /** * Simple text column */ class TextColumn implements IColumn { 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) { $this->name = $name; $this->header = $header; } public function getName() { return $this->name; } public function getHeader() { return $this->header; } public function getCellValue($rowNum, $row) { return $row[$this->name]; } public function isSortable() { return true; } } ?>