function __construct($id, $name, $sortable=false, $width="", $sorted="N", $visible=false, $type = Gpf_View_ViewColumn::TYPE_STRING) { parent::__construct($id, $name); $this->sortable = $sortable; $this->width = $width; $this->sorted = $sorted; $this->type = $type; }
/** * @return Gpf_Data_RecordSet */ public function getResult() { $result = new Gpf_Data_IndexedRecordSet('id'); $result->setHeader(Gpf_View_Column::getMetaResultArray()); foreach ($this->_columns as $column) { if($column->isInHeader()) { $result->add($column->getResultArray()); } } return $result; }