Пример #1
0
 /**
  * @return array
  */
 private function getParams()
 {
     if (!$this->filterParameters) {
         $this->filterParameters = new FilterParameters($this);
     }
     return $this->filterParameters->getParameters();
 }
Пример #2
0
 /**
  * @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');
 }