type = $type;// opac, acquisition... $this->module = $module;// opac_view $this->module_num = $module_num;// pour évolution... $this->fetch_data(); } function fetch_data() { global $dbh; $this->subst_param=array(); $myQuery = mysql_query("SELECT * FROM param_subst where subst_type_param= '".$this->type."' and subst_module_param= '".$this->module."' and subst_module_num= '".$this->module_num."' ", $dbh); if(mysql_num_rows($myQuery)){ while(($r=mysql_fetch_assoc($myQuery))) { $this->subst_param[]=$r; } } } function set_parameters() { foreach($this->subst_param as $param){ $subst_param_name = $param["subst_type_param"]."_".$param["subst_sstype_param"]; global $$subst_param_name; $$subst_param_name=$param["subst_valeur_param"]; } } } ?>