public function getSort() { if (null === $this->sort) { $sort = array('column' => $this->state->get('column'), 'order' => $this->state->get('order')); if (null !== $sort['column']) { $sort['field'] = $this->getColumn($sort['column'])->getFieldName(); } else { $sort['field'] = $this->defaultSort['field']; $sort['order'] = $this->defaultSort['order']; } $this->sort = $sort; } return $this->sort; }
public function resetCriteria() { $this->state->set('criteria', array()); }