Remove unused parameter $hotpotato_name

pull/2487/head
jmontoyaa 8 years ago
parent c6df021b53
commit 5607dbcde5
  1. 21
      main/exercise/exercise_result.class.php

@ -36,20 +36,18 @@ class ExerciseResult
* @param int $user_id User ID. Optional. If no user ID is provided, we take all the results. Defauts to null * @param int $user_id User ID. Optional. If no user ID is provided, we take all the results. Defauts to null
* @param int $filter * @param int $filter
* @param int $exercise_id * @param int $exercise_id
* @param null $hotpotato_name *
* @return bool * @return bool
*/ */
public function getExercisesReporting( public function getExercisesReporting(
$document_path, $document_path,
$user_id = null, $user_id = null,
$filter = 0, $filter = 0,
$exercise_id = 0, $exercise_id = 0
$hotpotato_name = null
) { ) {
$return = array(); $return = array();
$TBL_EXERCISES = Database::get_course_table(TABLE_QUIZ_TEST); $TBL_EXERCISES = Database::get_course_table(TABLE_QUIZ_TEST);
$TBL_TABLE_LP_MAIN = Database::get_course_table(TABLE_LP_MAIN); $TBL_TABLE_LP_MAIN = Database::get_course_table(TABLE_LP_MAIN);
$TBL_USER = Database::get_main_table(TABLE_MAIN_USER); $TBL_USER = Database::get_main_table(TABLE_MAIN_USER);
$TBL_TRACK_EXERCISES = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES); $TBL_TRACK_EXERCISES = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES);
$TBL_TRACK_ATTEMPT_RECORDING = Database:: get_main_table(TABLE_STATISTIC_TRACK_E_ATTEMPT_RECORDING); $TBL_TRACK_ATTEMPT_RECORDING = Database:: get_main_table(TABLE_STATISTIC_TRACK_E_ATTEMPT_RECORDING);
@ -276,32 +274,29 @@ class ExerciseResult
return true; return true;
} }
/** /**
* Exports the complete report as a CSV file * * Exports the complete report as a CSV file
* @param string $document_path Document path inside the document tool * @param string $document_path Document path inside the document tool
* @param integer $user_id Optional user ID * @param integer $user_id Optional user ID
* @param boolean $export_user_fields Whether to include user fields or not * @param boolean $export_user_fields Whether to include user fields or not
* @param int $export_filter * @param int $export_filter
* @param int $exercise_id * @param int $exercise_id
* @param string $hotpotato_name
* *
* @return boolean False on error * @return boolean False on error
*/ */
public function exportCompleteReportCSV( public function exportCompleteReportCSV(
$document_path = '', $document_path = '',
$user_id = null, $user_id = null,
$export_user_fields = false, $export_user_fields = false,
$export_filter = 0, $export_filter = 0,
$exercise_id = 0, $exercise_id = 0
$hotpotato_name = null
) { ) {
global $charset; global $charset;
$this->getExercisesReporting( $this->getExercisesReporting(
$document_path, $document_path,
$user_id, $user_id,
$export_filter, $export_filter,
$exercise_id, $exercise_id
$hotpotato_name
); );
$now = api_get_local_time(); $now = api_get_local_time();
$filename = 'exercise_results_'.$now.'.csv'; $filename = 'exercise_results_'.$now.'.csv';

Loading…
Cancel
Save