_columns)) { return $this->_columns[$name]; } return null; } public function updateColumn($name, $data) { $this->_columns[$name] = $data; return $this; } public function columnMove($key, $relpos) { $this->_columns = Qs_Array::move($this->_columns, $key, $relpos); return $this; } public function toArray() { $item = $this->getOptions(); $item['sortLink'] = $this->getSortLink(); $item['columns'] = $this->getColumns(); $item['list'] = $this->getList(); $this->paginator->setCurrentPageNumber($this->getPageNumber()) ->setItemCountPerPage((($ipp = $this->_getIpp()) ? $ipp : -1 )) ->setCurrentItems($item['list']); $item['paginator'] = get_object_vars($this->paginator->getPages()); $item['paginator']['url'] = $this->getPaginatorUrl(); $item['paginator']['pagePlaceholder'] = Qs_ViewController_List::$_paginatorPagePlaceholder; return $item; } }