/**
  * @param Form $form
  */
 public function filterFormSubmited(Form $form)
 {
     $values = $form->getValues();
     if ($values->id) {
         $this->filter->setIdsPages(Filter::createFilterArray($values->id));
     }
     if ($values->subquestions) {
         $this->filter->setSubquestions(Filter::createFilterArray($values->subquestions));
     }
     if ($values->correct) {
         $this->filter->setCorrect(Filter::createFilterArray($values->correct));
     }
     if ($values->almost) {
         $this->filter->setAlmost(Filter::createFilterArray($values->almost));
     }
     if ($values->wrong) {
         $this->filter->setWrong(Filter::createFilterArray($values->wrong));
     }
     if ($values->disqualified) {
         $this->filter->setDisqualified(Filter::createFilterArray($values->disqualified));
     }
     if ($values->percentages) {
         $this->filter->setPercentages(Filter::createFilterArray($values->percentages));
     }
     if ($values->order) {
         $order_arr = array();
         foreach ($values->order as $item) {
             if ($item->by && $item->dir) {
                 $order_arr[$item->by] = $item->dir;
             }
         }
         if (count($order_arr) > 0) {
             $this->filter->setOrderBy($order_arr);
         }
     }
     $this->redrawControl();
 }
 /**
  * @param Form $form
  */
 public function filterFormSubmited(Form $form)
 {
     $values = $form->getValues();
     if ($values->id) {
         $this->filter->setRespondents(Filter::createFilterArray($values->id));
     }
     if ($values->percentages) {
         $this->filter->setPercentages(Filter::createFilterArray($values->percentages));
     }
     if ($values->questions) {
         $this->filter->setQuestions(Filter::createFilterArray($values->questions));
     }
     if ($values->subquestions) {
         $this->filter->setSubquestions(Filter::createFilterArray($values->subquestions));
     }
     if ($values->correct) {
         $this->filter->setCorrects(Filter::createFilterArray($values->correct));
     }
     if ($values->wrong) {
         $this->filter->setWrongs(Filter::createFilterArray($values->wrong));
     }
     if ($values->almost) {
         $this->filter->setAlmosts(Filter::createFilterArray($values->almost));
     }
     if ($values->unknown) {
         $this->filter->setUnknowns(Filter::createFilterArray($values->unknown));
     }
     if ($values->disqualified) {
         $this->filter->setDisqualified(Filter::createFilterArray($values->disqualified));
     }
     if ($values->websites) {
         $this->filter->setWebsites($values->websites);
     }
     if ($values->datetime) {
         $this->filter->setDatetimes(Filter::createFilterArray($values->datetime));
     }
     if ($values->age) {
         $this->filter->setAges(Filter::createFilterArray($values->age));
     }
     if ($values->devices) {
         $this->filter->setDevices(Filter::createFilterArray($values->devices));
     }
     if ($values->device_most) {
         $this->filter->setDevicesMost(Filter::createFilterArray($values->device_most));
     }
     if ($values->gender) {
         $this->filter->setGenders(Filter::createFilterArray($values->gender));
     }
     if ($values->english) {
         $this->filter->setEnglishes(Filter::createFilterArray($values->english));
     }
     if ($values->it) {
         $this->filter->setIts(Filter::createFilterArray($values->it));
     }
     if ($values->order) {
         $order_arr = array();
         foreach ($values->order as $item) {
             if ($item->by && $item->dir) {
                 $order_arr[$item->by] = $item->dir;
             }
         }
         if (count($order_arr) > 0) {
             $this->filter->setOrderBy($order_arr);
         }
     }
     $this->redrawControl();
 }