/** * @param string $name * @return array */ private function getParamValues($name) { $annotations = FilterParameters::getAnnotations($this, $name); return array('name' => $annotations['name'][0], 'column' => $name, 'active' => $this->column === $name, 'direction' => $this->direction === 'desc' || $this->column !== $name ? 'asc' : 'desc'); }