Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37673

Export Attendance in Face to Face plugin

$
0
0
by Rob Galpin.  

Hi - I asked this in the Face to Face forum but got no reply - so I'm hoping that Face to Face is using a Moodle Core reporting capability to export the report that can be addressed in this forum.

My question:

In Face to Face plugin, the Export Attendance functionality on the view.php page is completely hidden behind the scenes. I can't find a trace of what is being called to generate the report. The only thing that the php code (or the html for that matter) exposes is an ordinary SUBMIT button for a generic form that submits back to the view.php page itself. No clues as to where this thing goes to make the database sql call or to generate a physical excel file. 

I need to customize it - but I can't find it. Any info would help. Thanks.

PHP that generates the form:

if (has_capability('mod/facetoface:viewattendees', $context)) {
echo $OUTPUT->heading(get_string('exportattendance', 'facetoface'));
echo html_writer::start_tag('form', array('action' => 'view.php', 'method' => 'get'));
echo html_writer::start_tag('div') . html_writer::empty_tag('input', array('type' => 'hidden', 'name' => 'f', 'value' => $facetoface->id));
echo get_string('format', 'facetoface') . ' ';
$formats = array('excel' => get_string('excelformat', 'facetoface'),
'ods' => get_string('odsformat', 'facetoface'));
echo html_writer::select($formats, 'download', 'excel', '');
echo html_writer::empty_tag('input', array('type' => 'submit', 'value' => get_string('exporttofile', 'facetoface')));
echo html_writer::end_tag('div'). html_writer::end_tag('form');
}

HTML (form) delivered to the browser:

<h2 class="main">Export attendance</h2>
<form action="view.php" method="get">
<div>
<input type="hidden" name="f" value="2" />Format&nbsp;
<select id="menudownload" class="select menudownload" name="download">
<option selected="selected" value="excel">Excel</option>
<option value="ods">OpenDocument</option>
</select>
<input type="submit" value="Export to file" />
</div>
</form>

Clueless. :/


Viewing all articles
Browse latest Browse all 37673

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>