/** * Description... * * @return array **/ public function columns($type = NULL) { foreach ($this->_list->columns() as $col) { if (!isNull($type) && $col->placement != $type) { continue; } $this->_columns[$col->id()] = (object) array('data' => $col->show($this), 'class' => $col->className(), 'column' => $col, 'position' => $this->_pos); } return $this->_columns; }