$string['exportingcontentfrom'] = 'Exporting content from $a';
$string['exportcomplete'] = 'Portfolio export complete!';
$string['exportqueued'] = 'Portfolio export has been successfully queued for transfer';
+$string['exportqueuedforced'] = 'Portfolio export has been successfully queued for transfer (the remote system has enforced queued transfers)';
$string['exportedpreviously'] = 'Previous exports';
$string['exportexceptionnoexporter'] = 'A portfolio_export_exception was thrown with an active session but no exporter object';
$string['failedtosendpackage'] = 'Failed to send your data to the selected portfolio system!';
private $stage;
+ private $forcequeue;
+
/**
* id of this export
* matches record in portfolio_tempdata table
} else if ($expectedtime == PORTFOLIO_TIME_FORCEQUEUE) {
$pluginbits['wait'] = 0;
$pluginbits['hidewait'] = 1;
+ $this->forcequeue = true;
}
$callerbits['hideformat'] = $pluginbits['hideformat'] = (count($formats) == 1);
$this->caller->set_export_config($callerbits);
);
$this->instance->set_export_config($config);
$this->caller->set_export_config(array('format' => $format, 'hideformat' => 1));
+ if ($expectedtime == PORTFOLIO_TIME_FORCEQUEUE) {
+ $this->forcequeue = true;
+ }
return true;
// do not break - fall through to confirm
}
$key = 'exportcomplete';
if ($queued) {
$key = 'exportqueued';
+ if ($this->forcequeue) {
+ $key = 'exportqueuedforced';
+ }
}
$this->print_header($key, false);
if ($returnurl) {