| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
 Collaboration diagram for ilTestArchiver:Public Member Functions | |
| getParticipantData () | |
| setParticipantData (ilTestParticipantData $participant_data) | |
| handInParticipantQuestionMaterial (int $active_fi, int $pass, int $question_fi, string $original_filename, string $file_path) | |
| handInParticipantMisc (int $active_fi, int $pass, string $original_filename, string $file_path) | |
| handInTestBestSolution (string $best_solution) | |
| handInParticipantUploadedResults (int $active_fi, int $pass, ilObjTest $tst_obj) | |
| handInBestSolutionQuestionMaterial (int $question_fi, string $orginial_filename, string $file_path) | |
| handInTestResult (int $active_fi, int $pass, string $pdf_path) | |
| updateTestArchive () | |
| ensureZipExportDirectoryExists () | |
| hasZipExportDirectory () | |
| getZipExportDirectory () | |
| compressTestArchive () | |
| getResultsOfUserOutput (\ilObjTest $test_obj, ilTestSession $test_session, array $participant_data, int $active_id, int $attempt) | |
Data Fields | |
| const | DIR_SEP = DIRECTORY_SEPARATOR | 
| const | EXPORT_DIRECTORY = 'archive_exports' | 
Protected Member Functions | |
| hasTestArchive () | |
| createArchiveForTest () | |
| getTestArchive () | |
| ensureTestArchiveIsAvailable () | |
| createZipExportDirectory () | |
| hasPassDataDirectory (int $active_fi, int $pass) | |
| createPassDataDirectory (int $active_fi, int $pass) | |
| getPassDataDirectory (int $active_fi, int $pass) | |
| ensurePassDataDirectoryIsAvailable (int $active_fi, int $pass) | |
| hasPassMaterialsDirectory (int $active_fi, int $pass) | |
| createPassMaterialsDirectory (int $active_fi, int $pass) | |
| getPassMaterialsDirectory (int $active_fi, int $pass) | |
| ensurePassMaterialsDirectoryIsAvailable (int $active_fi, int $pass) | |
| readArchiveDataIndex () | |
| appendToArchiveDataIndex (string $date, int $active_fi, int $pass, string $user_firstname, string $user_lastname, string $matriculation) | |
Protected Attributes | |
| ilTestHTMLGenerator | $html_generator | 
| ilTestParticipantData | $participant_data = null | 
Private Member Functions | |
| buildPassDataDirectory ($active_fi, $pass) | |
| determinePassDataPath (string $date, int $active_fi, int $pass, string $user_firstname, string $user_lastname, string $matriculation) | |
| createUserResultsForArchive (\ilObjTest $test_obj, array $active_ids,) | |
| getColumnsForAttemptOverviewTable (bool $show_requested_hints_info) | |
| getDataRetrievalForAttemptOverviewTable (array $result_data) | |
| logArchivingProcess (string $message) | |
Private Attributes | |
| const | PASS_MATERIALS_PATH_COMPONENT = 'materials' | 
| const | QUESTION_PATH_COMPONENT_PREFIX = 'q_' | 
| const | TEST_BEST_SOLUTION_PATH_COMPONENT = 'best_solution' | 
| const | HTML_BEST_SOLUTION_FILENAME = 'best_solution.html' | 
| const | TEST_MATERIALS_PATH_COMPONENT = 'materials' | 
| const | TEST_RESULT_FILENAME = 'test_result.html' | 
| const | LOG_DTSGROUP_FORMAT = 'D M j G:i:s T Y' | 
| const | LOG_ADDITION_STRING = ' Adding ' | 
| const | TEST_LOG_FILENAME = 'test_log.xlsx' | 
| const | DATA_INDEX_FILENAME = 'data_index.csv' | 
| const | ARCHIVE_LOG = 'archive.log' | 
| string | $external_directory_path | 
| string | $client_id = CLIENT_ID | 
| $archive_data_index | |
Definition at line 35 of file class.ilTestArchiver.php.
      
  | 
  protected | 
Definition at line 474 of file class.ilTestArchiver.php.
References determinePassDataPath(), getTestArchive(), and readArchiveDataIndex().
Referenced by createPassMaterialsDirectory(), and getPassDataDirectory().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 337 of file class.ilTestArchiver.php.
References getTestArchive().
Referenced by getPassDataDirectory().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilTestArchiver::compressTestArchive | ( | ) | 
Definition at line 314 of file class.ilTestArchiver.php.
References ensureZipExportDirectoryExists(), getTestArchive(), getZipExportDirectory(), updateTestArchive(), and ilFileUtils\zip().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 240 of file class.ilTestArchiver.php.
References getTestArchive(), and ilFileUtils\makeDirParents().
Referenced by ensureTestArchiveIsAvailable().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 331 of file class.ilTestArchiver.php.
References getPassDataDirectory().
Referenced by ensurePassDataDirectoryIsAvailable().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Data is taken from the current user as the implementation expects the first interaction of the pass takes place from the usage/behaviour of the current user. (skergomard, 11.09.24: Whatever the f*** this means.)
Definition at line 401 of file class.ilTestArchiver.php.
References appendToArchiveDataIndex(), getParticipantData(), getPassMaterialsDirectory(), and ILIAS\Repository\lng().
Referenced by ensurePassMaterialsDirectoryIsAvailable().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 522 of file class.ilTestArchiver.php.
References $results, ilObjTest\_getResultPass(), ilTestParticipantData\getActiveIds(), ilObject\getRefId(), getResultsOfUserOutput(), ilObjTest\getTestId(), ilTestParticipantData\getUserDataByActiveId(), ILIAS\Repository\int(), ILIAS\Repository\lng(), ilTestParticipantData\load(), ilTestParticipantData\setActiveIdsFilter(), ilTestParticipantData\setParticipantAccessFilter(), and ILIAS\Repository\user().
Referenced by updateTestArchive().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 303 of file class.ilTestArchiver.php.
References getZipExportDirectory().
Referenced by ensureZipExportDirectoryExists().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 499 of file class.ilTestArchiver.php.
Referenced by appendToArchiveDataIndex().
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 385 of file class.ilTestArchiver.php.
References createPassDataDirectory(), and hasPassDataDirectory().
Referenced by handInParticipantMisc(), handInParticipantQuestionMaterial(), handInParticipantUploadedResults(), and handInTestResult().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 437 of file class.ilTestArchiver.php.
References createPassMaterialsDirectory(), and hasPassMaterialsDirectory().
Referenced by handInParticipantUploadedResults().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 252 of file class.ilTestArchiver.php.
References createArchiveForTest(), and hasTestArchive().
Referenced by handInBestSolutionQuestionMaterial(), handInParticipantMisc(), handInParticipantQuestionMaterial(), handInParticipantUploadedResults(), handInTestBestSolution(), and handInTestResult().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilTestArchiver::ensureZipExportDirectoryExists | ( | ) | 
Definition at line 291 of file class.ilTestArchiver.php.
References createZipExportDirectory(), and hasZipExportDirectory().
Referenced by compressTestArchive().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 637 of file class.ilTestArchiver.php.
References ILIAS\Repository\lng().
Referenced by getResultsOfUserOutput().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 655 of file class.ilTestArchiver.php.
References ILIAS\UI\Implementation\Component\Table\$range, ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\UI\Component\Table\DataRowBuilder\buildDataRow().
Referenced by getResultsOfUserOutput().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilTestArchiver::getParticipantData | ( | ) | 
Definition at line 88 of file class.ilTestArchiver.php.
References $participant_data.
Referenced by createPassMaterialsDirectory(), and getPassDataDirectory().
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 349 of file class.ilTestArchiver.php.
References appendToArchiveDataIndex(), buildPassDataDirectory(), getParticipantData(), ILIAS\Repository\lng(), and ILIAS\Repository\user().
Referenced by createPassDataDirectory(), getPassMaterialsDirectory(), handInParticipantMisc(), handInParticipantQuestionMaterial(), handInTestResult(), and hasPassDataDirectory().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 431 of file class.ilTestArchiver.php.
References getPassDataDirectory().
Referenced by createPassMaterialsDirectory(), handInParticipantUploadedResults(), and hasPassMaterialsDirectory().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilTestArchiver::getResultsOfUserOutput | ( | \ilObjTest | $test_obj, | 
| ilTestSession | $test_session, | ||
| array | $participant_data, | ||
| int | $active_id, | ||
| int | $attempt | ||
| ) | 
Definition at line 565 of file class.ilTestArchiver.php.
References $results, ilTestSession\getActiveId(), ilObjTest\getAnonymity(), getColumnsForAttemptOverviewTable(), getDataRetrievalForAttemptOverviewTable(), ilObjTest\getResultsForActiveId(), ilObjTest\getTestResult(), ilObjTest\isOfferingQuestionHintsEnabled(), ilObjTest\isShowExamIdInTestResultsEnabled(), ILIAS\Repository\lng(), ilObjTest\lookupExamId(), and ILIAS\Repository\user().
Referenced by createUserResultsForArchive().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 245 of file class.ilTestArchiver.php.
Referenced by appendToArchiveDataIndex(), buildPassDataDirectory(), compressTestArchive(), createArchiveForTest(), handInBestSolutionQuestionMaterial(), handInTestBestSolution(), hasTestArchive(), logArchivingProcess(), readArchiveDataIndex(), and updateTestArchive().
 Here is the caller graph for this function:| ilTestArchiver::getZipExportDirectory | ( | ) | 
Definition at line 308 of file class.ilTestArchiver.php.
Referenced by compressTestArchive(), createZipExportDirectory(), and hasZipExportDirectory().
 Here is the caller graph for this function:| ilTestArchiver::handInBestSolutionQuestionMaterial | ( | int | $question_fi, | 
| string | $orginial_filename, | ||
| string | $file_path | ||
| ) | 
Definition at line 196 of file class.ilTestArchiver.php.
References ensureTestArchiveIsAvailable(), getTestArchive(), and logArchivingProcess().
 Here is the call graph for this function:| ilTestArchiver::handInParticipantMisc | ( | int | $active_fi, | 
| int | $pass, | ||
| string | $original_filename, | ||
| string | $file_path | ||
| ) | 
Definition at line 122 of file class.ilTestArchiver.php.
References ensurePassDataDirectoryIsAvailable(), ensureTestArchiveIsAvailable(), getPassDataDirectory(), and logArchivingProcess().
 Here is the call graph for this function:| ilTestArchiver::handInParticipantQuestionMaterial | ( | int | $active_fi, | 
| int | $pass, | ||
| int | $question_fi, | ||
| string | $original_filename, | ||
| string | $file_path | ||
| ) | 
Definition at line 98 of file class.ilTestArchiver.php.
References ensurePassDataDirectoryIsAvailable(), ensureTestArchiveIsAvailable(), getPassDataDirectory(), and logArchivingProcess().
 Here is the call graph for this function:| ilTestArchiver::handInParticipantUploadedResults | ( | int | $active_fi, | 
| int | $pass, | ||
| ilObjTest | $tst_obj | ||
| ) | 
Definition at line 159 of file class.ilTestArchiver.php.
References ensurePassDataDirectoryIsAvailable(), ensurePassMaterialsDirectoryIsAvailable(), ensureTestArchiveIsAvailable(), getPassMaterialsDirectory(), ilObjTest\getQuestionDataset(), ilObjTest\getQuestionsOfPass(), and ilObjTest\getTextAnswer().
 Here is the call graph for this function:| ilTestArchiver::handInTestBestSolution | ( | string | $best_solution | ) | 
Definition at line 135 of file class.ilTestArchiver.php.
References ensureTestArchiveIsAvailable(), getTestArchive(), and logArchivingProcess().
 Here is the call graph for this function:| ilTestArchiver::handInTestResult | ( | int | $active_fi, | 
| int | $pass, | ||
| string | $pdf_path | ||
| ) | 
Definition at line 226 of file class.ilTestArchiver.php.
References ensurePassDataDirectoryIsAvailable(), ensureTestArchiveIsAvailable(), getPassDataDirectory(), and logArchivingProcess().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 326 of file class.ilTestArchiver.php.
References getPassDataDirectory().
Referenced by ensurePassDataDirectoryIsAvailable().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 393 of file class.ilTestArchiver.php.
References getPassMaterialsDirectory().
Referenced by ensurePassMaterialsDirectoryIsAvailable().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 235 of file class.ilTestArchiver.php.
References getTestArchive().
Referenced by ensureTestArchiveIsAvailable().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilTestArchiver::hasZipExportDirectory | ( | ) | 
Definition at line 298 of file class.ilTestArchiver.php.
References getZipExportDirectory().
Referenced by ensureZipExportDirectoryExists().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 700 of file class.ilTestArchiver.php.
References getTestArchive().
Referenced by handInBestSolutionQuestionMaterial(), handInParticipantMisc(), handInParticipantQuestionMaterial(), handInTestBestSolution(), and handInTestResult().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
The Archive Data Index is a csv-file containing the following columns <active_fi>|<pass>|<yyyy>|<mm>||<directory>
PhpUsageOfSilenceOperatorInspection
Definition at line 444 of file class.ilTestArchiver.php.
References getTestArchive().
Referenced by appendToArchiveDataIndex().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilTestArchiver::setParticipantData | ( | ilTestParticipantData | $participant_data | ) | 
Definition at line 93 of file class.ilTestArchiver.php.
References $participant_data.
Referenced by ilTestArchiveService\archiveActivesPass().
 Here is the caller graph for this function:| ilTestArchiver::updateTestArchive | ( | ) | 
Definition at line 260 of file class.ilTestArchiver.php.
References $filename, createUserResultsForArchive(), and getTestArchive().
Referenced by compressTestArchive().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 59 of file class.ilTestArchiver.php.
      
  | 
  private | 
Definition at line 58 of file class.ilTestArchiver.php.
      
  | 
  private | 
Definition at line 57 of file class.ilTestArchiver.php.
      
  | 
  protected | 
Definition at line 61 of file class.ilTestArchiver.php.
      
  | 
  protected | 
Definition at line 63 of file class.ilTestArchiver.php.
Referenced by getParticipantData(), and setParticipantData().
      
  | 
  private | 
Definition at line 55 of file class.ilTestArchiver.php.
      
  | 
  private | 
Definition at line 54 of file class.ilTestArchiver.php.
| const ilTestArchiver::DIR_SEP = DIRECTORY_SEPARATOR | 
Definition at line 37 of file class.ilTestArchiver.php.
| const ilTestArchiver::EXPORT_DIRECTORY = 'archive_exports' | 
Definition at line 39 of file class.ilTestArchiver.php.
Referenced by ilTestExportOptionARC\getDirectory().
      
  | 
  private | 
Definition at line 45 of file class.ilTestArchiver.php.
      
  | 
  private | 
Definition at line 51 of file class.ilTestArchiver.php.
      
  | 
  private | 
Definition at line 50 of file class.ilTestArchiver.php.
      
  | 
  private | 
Definition at line 41 of file class.ilTestArchiver.php.
      
  | 
  private | 
Definition at line 42 of file class.ilTestArchiver.php.
      
  | 
  private | 
Definition at line 44 of file class.ilTestArchiver.php.
      
  | 
  private | 
Definition at line 53 of file class.ilTestArchiver.php.
      
  | 
  private | 
Definition at line 46 of file class.ilTestArchiver.php.
      
  | 
  private | 
Definition at line 48 of file class.ilTestArchiver.php.