/**
  *  List all updaters which need to be processed
  *
  *  @return	array				Array of price global variable updaters
  */
 function listPendingUpdaters()
 {
     $sql = "SELECT rowid, type, description, parameters, fk_variable, update_interval, next_update, last_status";
     $sql .= " FROM " . MAIN_DB_PREFIX . $this->table_element;
     $sql .= " WHERE next_update < " . dol_now();
     dol_syslog(get_class($this) . "::processUpdaters");
     $resql = $this->db->query($sql);
     if ($resql) {
         $retarray = array();
         while ($record = $this->db->fetch_array($resql)) {
             $updater_obj = new PriceGlobalVariableUpdater($this->db);
             $updater_obj->id = $record["rowid"];
             $updater_obj->type = $record["type"];
             $updater_obj->description = $record["description"];
             $updater_obj->parameters = $record["parameters"];
             $updater_obj->fk_variable = $record["fk_variable"];
             $updater_obj->update_interval = $record["update_interval"];
             $updater_obj->next_update = $record["next_update"];
             $updater_obj->last_status = $record["last_status"];
             $updater_obj->checkParameters();
             $retarray[] = $updater_obj;
         }
         $this->db->free($resql);
         return $retarray;
     } else {
         $this->error = $this->db->error();
         return -1;
     }
 }