Пример #1
0
 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;
 }
Пример #2
0
    /**
     * @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;
    }