Beispiel #1
0
 /**
  * after all error checking is finish, this finishes the search
  * @return void
  */
 function finish()
 {
     if (preg_match('/clear/', $this->get_chosen_action())) {
         $array = array('page' => false, 'submitted' => '', 'submit' => '', 'clear' => '', 'refresh_lister_state' => '1');
         if (!empty($this->page->request['order_by'])) {
             $array['order_by'] = $this->page->request['order_by'];
         }
         if (!empty($this->page->request['dir'])) {
             $array['dir'] = $this->page->request['dir'];
         }
         if (!empty($this->page->request['lister'])) {
             $array['lister'] = $this->page->request['lister'];
         }
         if (!empty($this->page->request['state'])) {
             $array['state'] = $this->page->request['state'];
         }
         $link = unhtmlentities($this->page->make_link($array));
     } else {
         $link = unhtmlentities($this->page->make_link(array('page' => false, 'submitted' => '', 'submit' => '', 'clear' => ''), true));
     }
     return $link;
 }