/** * Progress bar update * * @param int $artefacts How many artefacts have been created */ function unzip_iframe_progress_handler($artefacts) { global $unzip; $percent = $artefacts / $unzip['artefacts'] * 100; $status = get_string('unzipprogress', 'artefact.file', $artefacts . '/' . $unzip['artefacts']); set_time_limit(10); print_iframe_progress_handler($percent, $status); flush(); }
/** * Registered as the progress report handler for the export. Streams updates * back to the browser * * @param int $percent How far complete the export is * @param string $status A human-readable string describing the current step */ function export_iframe_progress_handler($percent, $status) { print_iframe_progress_handler($percent, $status); flush(); }