+require_once($CFG->libdir . '/portfoliolib.php');
+
+$dataid = 0;
+$currentinfo = null;
+if (!$dataid = optional_param('id', '', PARAM_INT) ) {
+ if (isset($SESSION->portfolioexport)) {
+ $dataid = $SESSION->portfolioexport;
+ }
+}
+
+$table = new StdClass;
+$table->head = array(
+ get_string('displayarea', 'portfolio'),
+ get_string('destination', 'portfolio'),
+ get_string('displayinfo', 'portfolio'),
+);
+$table->data = array();
+if ($dataid) {
+ try {
+ $exporter = portfolio_exporter::rewaken_object($dataid);
+ $exporter->verify_rewaken();
+ $table->data[] = array(
+ $exporter->get('caller')->display_name(),
+ ($exporter->get('instance') ? $exporter->get('instance')->get('name') : get_string('notyetselected', 'portfolio')),
+ $exporter->get('caller')->heading_summary(),
+ );
+ } catch (portfolio_exception $e) { }
+}