. */ /** * Simple text column */ require_once(ROOTPATH."include/list/IColumn.php"); class TextColumn implements IColumn { protected $name; protected $header; protected $class; /** * 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; $this->class = NULL; } 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; } public function getClass() { return $this->class; } public function setClass($class) { $this->class = $class; } } ?>