elem = $elem; if(!$params){ $this->get_from_form(); }else $this->set_params($params); } public function get_from_form(){ $sort = $this->elem['id']."_sort"; global $$sort; $this->sort = stripslashes($$sort); } public function get_form(){ global $msg,$charset; $order_form= "
 
"; return $order_form; } public function get_params(){ return $this->sort; } protected function set_params($params){ $this->sort = $params; } public function get_sql_filter(){ if($this->sort){ if($this->elem['field_alias']){ $champ=$this->elem['field_alias']; }else{ $champ=$this->elem['field']; } /*if($this->elem['field_join']){ $champ=$this->elem['field_join']; }else{ $champ=$this->elem['field']; }*/ $sql_filter = $champ." ".$this->sort; } return $sql_filter; } }