unserialize_task_params(); $this->add_section_report($this->msg["mysql_operation"]); if (method_exists($this->proxy, "pmbesMySQL_mysqlTable")) { if ($parameters["mySQL"]) { $percent = 0; $p_value = (int) 100/count($parameters["mySQL"]); foreach($parameters["mySQL"] as $action) { $this->listen_commande(array(&$this, 'traite_commande')); //fonction a rappeller (traite commande) if($this->statut == WAITING) { $this->send_command(RUNNING); } if($this->statut == RUNNING) { $this->add_section_report($action); $result = $this->proxy->pmbesMySQL_mysqlTable($action); $maintenance_mysql = array(); foreach ($result as $i=>$table) { $maintenance_mysql[$table[2]][$table[3]][] = substr($table[0], strpos($table[0], '.')+1); } $txt_msg_type = ""; $txt_msg_text = ""; foreach ($maintenance_mysql as $msg_type=>$values) { if ($msg_type != $txt_msg_type) { $txt_msg_type = $msg_type; $this->add_content_report("Op : ".$msg_type); } foreach ($values as $msg_text=>$tables) { if ($msg_text != $txt_msg_text) { $txt_msg_text = $msg_text; $this->add_content_report("Msg_text : ".$msg_text); $this->add_content_report("Tables : ".implode(" - ", $tables)); } } } $percent += $p_value; $this->update_progression($percent); } } } else { $this->add_content_report($this->msg["mysql_action_unknown"]); } } else { $this->add_function_rights_report("mysqlTable","pmbesMySQL"); } } else { $this->add_rights_bad_user_report(); } } }