function update_single_network($network) { // make sure the network exists if (!DbUpdate::is_network_valid($network)) { throw new PAException(NETWORK_NOT_FOUND, "Cannot update $network as it does not exist in the database"); } // we shouldn't need to care about this, but just in case, keep copies of updated vars $stored_full_update = $this->full_update; $this->full_update = FALSE; $stored_quiet = $this->quiet; $this->quiet = TRUE; // update just the specified network $this->networks = array($network); $this->do_updates(); // pop old values $this->full_update = $stored_full_update; $this->quiet = $stored_quiet; }