ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
Public Member Functions | |
__construct (private readonly Factory $factory, private readonly \ilDBInterface $db) | |
storeTestAdministrationInteraction (TestAdministrationInteraction $interaction) | |
storeQuestionAdministrationInteraction (TestQuestionAdministrationInteraction $interaction) | |
storeParticipantInteraction (TestParticipantInteraction $interaction) | |
storeScoringInteraction (TestScoringInteraction $interaction) | |
storeError (TestError $interaction) | |
getLogs (array $valid_types, ?array $test_filter, ?\ILIAS\Data\Range $range=null, ?\ILIAS\Data\Order $order=null, ?int $from_filter=null, ?int $to_filter=null, ?array $admin_filter=null, ?array $pax_filter=null, ?array $question_filter=null, ?string $ip_filter=null, ?array $log_entry_type_filter=null, ?array $interaction_type_filter=null) | |
getLogsCount (array $valid_types, ?array $test_filter=null, ?int $from_filter=null, ?int $to_filter=null, ?array $admin_filter=null, ?array $pax_filter=null, ?array $question_filter=null, ?string $ip_filter=null, ?array $log_entry_type_filter=null, ?array $interaction_type_filter=null) | |
getLogsByUniqueIdentifiers (array $unique_ids) | |
getLog (string $unique_id) | |
deleteLogs (array $unique_ids) | |
testHasParticipantInteractions (int $ref_id) | |
deleteParticipantInteractionsForTest (int $ref_id) | |
getLegacyLogsForObjId (?int $obj_id) | |
![]() | |
getLogs (array $valid_types, ?array $test_filter, ?Range $range=null, ?Order $order=null, ?int $from_filter=null, ?int $to_filter=null, ?array $admin_filter=null, ?array $pax_filter=null, ?array $question_filter=null, ?string $ip_filter=null, ?array $log_entry_type_filter=null, ?array $interaction_type_filter=null) | |
Data Fields | |
const | TEST_ADMINISTRATION_LOG_TABLE = 'tst_tst_admin_log' |
const | QUESTION_ADMINISTRATION_LOG_TABLE = 'tst_qst_admin_log' |
const | PARTICIPANT_LOG_TABLE = 'tst_pax_log' |
const | SCORING_LOG_TABLE = 'tst_mark_log' |
const | ERROR_LOG_TABLE = 'tst_error_log' |
Private Member Functions | |
buildUserInteractionForUniqueIdentifier (string $unique_id) | |
buildTestAdministrationInteractionFromId (int $id) | |
buildQuestionAdministrationInteractionFromId (int $id) | |
buildParticipantInteractionFromId (int $id) | |
buildScoringInteractionFromId (int $id) | |
buildErrorFromId (int $id) | |
retrieveInteractions (array $valid_types, ?Range $range, ?Order $order, ?int $from_filter, ?int $to_filter, ?array $test_filter, ?array $admin_filter, ?array $pax_filter, ?array $question_filter, ?string $ip_filter, ?array $log_entry_type_filter, ?array $interaction_type_filter) | |
fetchInteractionForResult (\ilDBStatement $result) | |
buildSelectStatementForId (int $id, string $table_name) | |
buildDeleteQueryForUniqueIds (array $unique_ids) | |
buildInteractionsStatementWithLimitAndOrder (array $valid_types, ?Range $range, ?Order $order, ?int $from_filter, ?int $to_filter, ?array $test_filter, ?array $admin_filter, ?array $pax_filter, ?array $question_filter, ?string $ip_filter, ?array $log_entry_type_filter, ?array $interaction_type_filter) | |
buildCountQuery (array $valid_types, ?int $from_filter, ?int $to_filter, ?array $test_filter, ?array $admin_filter, ?array $pax_filter, ?array $question_filter, ?string $ip_filter, ?array $log_entry_type_filter, ?array $interaction_type_filter) | |
buildInteractionsQuery (array $valid_types, ?int $from_filter, ?int $to_filter, ?array $test_filter, ?array $admin_filter, ?array $pax_filter, ?array $question_filter, ?string $ip_filter, ?array $log_entry_type_filter, ?array $interaction_type_filter) | |
buildTableQueryFromFilterValues (string $type, ?int $from_filter, ?int $to_filter, ?array $test_filter, ?array $admin_filter, ?array $pax_filter, ?array $question_filter, ?string $ip_filter, ?array $interaction_type_filter) | |
buildSelectForTable (string $table_name, string $type) | |
buildWhereFromFilterValues (?int $from_filter, ?int $to_filter, ?array $test_filter, ?array $admin_filter, ?array $pax_filter, ?array $question_filter, ?string $ip_filter, ?array $interaction_type_filter) | |
isFilterValid (array $valid_types, ?array $log_entry_types, ?array $interaction_types) | |
areLogEntryTypesValid (array $valid_types, array $filter_log_types) | |
areInteractionTypesValid (array $valid_types, ?array $filter_log_types, array $filter_interaction_types) | |
parseUniqueIdsToTypeArray (array $unique_ids) | |
getTableNameForTypeIdentifier (string $identifier) | |
Private Attributes | |
const | LEGACY_LOG_TABLE = 'ass_log' |
const | VIEW_TABLE_TO_DB_TABLES |
Definition at line 27 of file TestLoggingDatabaseRepository.php.
ILIAS\Test\Logging\TestLoggingDatabaseRepository::__construct | ( | private readonly Factory | $factory, |
private readonly \ilDBInterface | $db | ||
) |
Definition at line 47 of file TestLoggingDatabaseRepository.php.
|
private |
Definition at line 660 of file TestLoggingDatabaseRepository.php.
References null.
Referenced by ILIAS\Test\Logging\TestLoggingDatabaseRepository\isFilterValid().
|
private |
Definition at line 650 of file TestLoggingDatabaseRepository.php.
Referenced by ILIAS\Test\Logging\TestLoggingDatabaseRepository\isFilterValid().
|
private |
Definition at line 438 of file TestLoggingDatabaseRepository.php.
References ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildInteractionsQuery().
Referenced by ILIAS\Test\Logging\TestLoggingDatabaseRepository\getLogsCount().
|
private |
Definition at line 376 of file TestLoggingDatabaseRepository.php.
References ILIAS\Test\Logging\TestLoggingDatabaseRepository\parseUniqueIdsToTypeArray(), and ilDBConstants\T_INTEGER.
Referenced by ILIAS\Test\Logging\TestLoggingDatabaseRepository\deleteLogs().
|
private |
Definition at line 303 of file TestLoggingDatabaseRepository.php.
References ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildSelectStatementForId(), factory(), and null.
Referenced by ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildUserInteractionForUniqueIdentifier().
|
private |
Definition at line 468 of file TestLoggingDatabaseRepository.php.
References ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildTableQueryFromFilterValues(), and null.
Referenced by ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildCountQuery(), and ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildInteractionsStatementWithLimitAndOrder().
|
private |
Definition at line 393 of file TestLoggingDatabaseRepository.php.
References ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildInteractionsQuery(), ILIAS\Data\Range\getLength(), ILIAS\Data\Range\getStart(), ILIAS\Data\Order\join(), and null.
Referenced by ILIAS\Test\Logging\TestLoggingDatabaseRepository\retrieveInteractions().
|
private |
Definition at line 283 of file TestLoggingDatabaseRepository.php.
References ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildSelectStatementForId(), factory(), and null.
Referenced by ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildUserInteractionForUniqueIdentifier().
|
private |
Definition at line 273 of file TestLoggingDatabaseRepository.php.
References ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildSelectStatementForId(), factory(), and null.
Referenced by ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildUserInteractionForUniqueIdentifier().
|
private |
Definition at line 293 of file TestLoggingDatabaseRepository.php.
References ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildSelectStatementForId(), factory(), and null.
Referenced by ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildUserInteractionForUniqueIdentifier().
|
private |
Definition at line 557 of file TestLoggingDatabaseRepository.php.
Referenced by ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildTableQueryFromFilterValues().
|
private |
Definition at line 367 of file TestLoggingDatabaseRepository.php.
References ilDBConstants\T_INTEGER.
Referenced by ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildErrorFromId(), ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildParticipantInteractionFromId(), ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildQuestionAdministrationInteractionFromId(), ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildScoringInteractionFromId(), and ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildTestAdministrationInteractionFromId().
|
private |
Definition at line 516 of file TestLoggingDatabaseRepository.php.
References ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildSelectForTable(), ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildWhereFromFilterValues(), ILIAS\Test\Logging\TestLoggingDatabaseRepository\getTableNameForTypeIdentifier(), and null.
Referenced by ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildInteractionsQuery().
|
private |
Definition at line 263 of file TestLoggingDatabaseRepository.php.
References ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildSelectStatementForId(), factory(), and null.
Referenced by ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildUserInteractionForUniqueIdentifier().
|
private |
Definition at line 235 of file TestLoggingDatabaseRepository.php.
References ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildErrorFromId(), ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildParticipantInteractionFromId(), ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildQuestionAdministrationInteractionFromId(), ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildScoringInteractionFromId(), ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildTestAdministrationInteractionFromId(), ILIAS\Test\Logging\TestError\IDENTIFIER, ILIAS\Test\Logging\TestParticipantInteraction\IDENTIFIER, ILIAS\Test\Logging\TestAdministrationInteraction\IDENTIFIER, ILIAS\Test\Logging\TestQuestionAdministrationInteraction\IDENTIFIER, ILIAS\Test\Logging\TestScoringInteraction\IDENTIFIER, and null.
Referenced by ILIAS\Test\Logging\TestLoggingDatabaseRepository\getLog().
|
private |
Definition at line 585 of file TestLoggingDatabaseRepository.php.
References null, ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
Referenced by ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildTableQueryFromFilterValues().
ILIAS\Test\Logging\TestLoggingDatabaseRepository::deleteLogs | ( | array | $unique_ids | ) |
array<string> | $unique_ids |
Implements ILIAS\Test\Logging\TestLoggingRepository.
Definition at line 178 of file TestLoggingDatabaseRepository.php.
References ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildDeleteQueryForUniqueIds().
ILIAS\Test\Logging\TestLoggingDatabaseRepository::deleteParticipantInteractionsForTest | ( | int | $ref_id | ) |
Implements ILIAS\Test\Logging\TestLoggingRepository.
Definition at line 196 of file TestLoggingDatabaseRepository.php.
References ilDBConstants\T_INTEGER.
|
private |
Definition at line 344 of file TestLoggingDatabaseRepository.php.
References factory(), ILIAS\Test\Logging\TestParticipantInteraction\IDENTIFIER, ILIAS\Test\Logging\TestError\IDENTIFIER, ILIAS\Test\Logging\TestAdministrationInteraction\IDENTIFIER, ILIAS\Test\Logging\TestQuestionAdministrationInteraction\IDENTIFIER, and ILIAS\Test\Logging\TestScoringInteraction\IDENTIFIER.
Referenced by ILIAS\Test\Logging\TestLoggingDatabaseRepository\getLogsByUniqueIdentifiers(), and ILIAS\Test\Logging\TestLoggingDatabaseRepository\retrieveInteractions().
ILIAS\Test\Logging\TestLoggingDatabaseRepository::getLegacyLogsForObjId | ( | ?int | $obj_id | ) |
Implements ILIAS\Test\Logging\TestLoggingRepository.
Definition at line 205 of file TestLoggingDatabaseRepository.php.
ILIAS\Test\Logging\TestLoggingDatabaseRepository::getLog | ( | string | $unique_id | ) |
Implements ILIAS\Test\Logging\TestLoggingRepository.
Definition at line 169 of file TestLoggingDatabaseRepository.php.
References ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildUserInteractionForUniqueIdentifier().
ILIAS\Test\Logging\TestLoggingDatabaseRepository::getLogs | ( | array | $valid_types, |
?array | $test_filter, | ||
?\ILIAS\Data\Range | $range = null , |
||
?\ILIAS\Data\Order | $order = null , |
||
?int | $from_filter = null , |
||
?int | $to_filter = null , |
||
?array | $admin_filter = null , |
||
?array | $pax_filter = null , |
||
?array | $question_filter = null , |
||
?string | $ip_filter = null , |
||
?array | $log_entry_type_filter = null , |
||
?array | $interaction_type_filter = null |
||
) |
Definition at line 88 of file TestLoggingDatabaseRepository.php.
References ILIAS\UI\Implementation\Component\Table\$range, ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from(), ILIAS\Test\Logging\TestLoggingDatabaseRepository\isFilterValid(), and ILIAS\Test\Logging\TestLoggingDatabaseRepository\retrieveInteractions().
ILIAS\Test\Logging\TestLoggingDatabaseRepository::getLogsByUniqueIdentifiers | ( | array | $unique_identifiers | ) |
array<string> | $unique_identifiers |
Implements ILIAS\Test\Logging\TestLoggingRepository.
Definition at line 158 of file TestLoggingDatabaseRepository.php.
References ILIAS\Test\Logging\TestLoggingDatabaseRepository\fetchInteractionForResult(), ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from(), ILIAS\Test\Logging\TestLoggingDatabaseRepository\parseUniqueIdsToTypeArray(), and ilDBConstants\T_INTEGER.
ILIAS\Test\Logging\TestLoggingDatabaseRepository::getLogsCount | ( | array | $valid_types, |
?array | $test_filter = null , |
||
?int | $from_filter = null , |
||
?int | $to_filter = null , |
||
?array | $admin_filter = null , |
||
?array | $pax_filter = null , |
||
?array | $question_filter = null , |
||
?string | $ip_filter = null , |
||
?array | $log_entry_type_filter = null , |
||
?array | $interaction_type_filter = null |
||
) |
Implements ILIAS\Test\Logging\TestLoggingRepository.
Definition at line 125 of file TestLoggingDatabaseRepository.php.
References ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildCountQuery().
|
private |
Definition at line 715 of file TestLoggingDatabaseRepository.php.
References ILIAS\Test\Logging\TestParticipantInteraction\IDENTIFIER, ILIAS\Test\Logging\TestError\IDENTIFIER, ILIAS\Test\Logging\TestAdministrationInteraction\IDENTIFIER, ILIAS\Test\Logging\TestQuestionAdministrationInteraction\IDENTIFIER, and ILIAS\Test\Logging\TestScoringInteraction\IDENTIFIER.
Referenced by ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildTableQueryFromFilterValues().
|
private |
Definition at line 628 of file TestLoggingDatabaseRepository.php.
References ILIAS\Test\Logging\TestLoggingDatabaseRepository\areInteractionTypesValid(), ILIAS\Test\Logging\TestLoggingDatabaseRepository\areLogEntryTypesValid(), and null.
Referenced by ILIAS\Test\Logging\TestLoggingDatabaseRepository\getLogs().
|
private |
array<int> | $unique_ids |
Definition at line 693 of file TestLoggingDatabaseRepository.php.
Referenced by ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildDeleteQueryForUniqueIds(), and ILIAS\Test\Logging\TestLoggingDatabaseRepository\getLogsByUniqueIdentifiers().
|
private |
Definition at line 313 of file TestLoggingDatabaseRepository.php.
References ILIAS\Test\Logging\TestLoggingDatabaseRepository\buildInteractionsStatementWithLimitAndOrder(), ILIAS\Test\Logging\TestLoggingDatabaseRepository\fetchInteractionForResult(), and ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from().
Referenced by ILIAS\Test\Logging\TestLoggingDatabaseRepository\getLogs().
ILIAS\Test\Logging\TestLoggingDatabaseRepository::storeError | ( | TestError | $interaction | ) |
Implements ILIAS\Test\Logging\TestLoggingRepository.
Definition at line 81 of file TestLoggingDatabaseRepository.php.
References ilDBConstants\T_INTEGER, and ILIAS\Test\Logging\TestError\toStorage().
ILIAS\Test\Logging\TestLoggingDatabaseRepository::storeParticipantInteraction | ( | TestParticipantInteraction | $interaction | ) |
Implements ILIAS\Test\Logging\TestLoggingRepository.
Definition at line 67 of file TestLoggingDatabaseRepository.php.
References ilDBConstants\T_INTEGER, and ILIAS\Test\Logging\TestParticipantInteraction\toStorage().
ILIAS\Test\Logging\TestLoggingDatabaseRepository::storeQuestionAdministrationInteraction | ( | TestQuestionAdministrationInteraction | $interaction | ) |
Implements ILIAS\Test\Logging\TestLoggingRepository.
Definition at line 60 of file TestLoggingDatabaseRepository.php.
References ilDBConstants\T_INTEGER, and ILIAS\Test\Logging\TestQuestionAdministrationInteraction\toStorage().
ILIAS\Test\Logging\TestLoggingDatabaseRepository::storeScoringInteraction | ( | TestScoringInteraction | $interaction | ) |
Implements ILIAS\Test\Logging\TestLoggingRepository.
Definition at line 74 of file TestLoggingDatabaseRepository.php.
References ilDBConstants\T_INTEGER, and ILIAS\Test\Logging\TestScoringInteraction\toStorage().
ILIAS\Test\Logging\TestLoggingDatabaseRepository::storeTestAdministrationInteraction | ( | TestAdministrationInteraction | $interaction | ) |
Implements ILIAS\Test\Logging\TestLoggingRepository.
Definition at line 53 of file TestLoggingDatabaseRepository.php.
References ilDBConstants\T_INTEGER, and ILIAS\Test\Logging\TestAdministrationInteraction\toStorage().
ILIAS\Test\Logging\TestLoggingDatabaseRepository::testHasParticipantInteractions | ( | int | $ref_id | ) |
Implements ILIAS\Test\Logging\TestLoggingRepository.
Definition at line 186 of file TestLoggingDatabaseRepository.php.
References ilDBConstants\T_INTEGER.
const ILIAS\Test\Logging\TestLoggingDatabaseRepository::ERROR_LOG_TABLE = 'tst_error_log' |
Definition at line 34 of file TestLoggingDatabaseRepository.php.
Referenced by ILIAS\Test\Setup\Test10DBUpdateSteps\step_3().
|
private |
Definition at line 29 of file TestLoggingDatabaseRepository.php.
const ILIAS\Test\Logging\TestLoggingDatabaseRepository::PARTICIPANT_LOG_TABLE = 'tst_pax_log' |
Definition at line 32 of file TestLoggingDatabaseRepository.php.
Referenced by ILIAS\Test\Setup\Test10DBUpdateSteps\step_3().
const ILIAS\Test\Logging\TestLoggingDatabaseRepository::QUESTION_ADMINISTRATION_LOG_TABLE = 'tst_qst_admin_log' |
Definition at line 31 of file TestLoggingDatabaseRepository.php.
Referenced by ILIAS\Test\Setup\Test10DBUpdateSteps\step_3().
const ILIAS\Test\Logging\TestLoggingDatabaseRepository::SCORING_LOG_TABLE = 'tst_mark_log' |
Definition at line 33 of file TestLoggingDatabaseRepository.php.
Referenced by ILIAS\Test\Setup\Test10DBUpdateSteps\step_3().
const ILIAS\Test\Logging\TestLoggingDatabaseRepository::TEST_ADMINISTRATION_LOG_TABLE = 'tst_tst_admin_log' |
Definition at line 30 of file TestLoggingDatabaseRepository.php.
Referenced by ILIAS\Test\Setup\Test10DBUpdateSteps\step_3().
|
private |
Definition at line 36 of file TestLoggingDatabaseRepository.php.