|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilCertificateMigrationJob. More...
Inheritance diagram for ilCertificateMigrationJob:
Collaboration diagram for ilCertificateMigrationJob:Public Member Functions | |
| run (array $input, Observer $observer) | |
| isStateless () | |
| getExpectedTimeOfTaskInSeconds () | |
| getInputTypes () | |
| getOutputType () | |
| getTaskInformations () | |
Public Member Functions inherited from ILIAS\BackgroundTasks\Implementation\Tasks\AbstractJob | |
| getInput () | |
| |
Public Member Functions inherited from ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask | |
| setInput (array $values) | |
| getOutput () | |
| getInput () | |
| getType () | |
| unfoldTask () | |
| Unfold the task. More... | |
| getRemoveOption () | |
| |
| getAbortOption () | |
| |
| getType () | |
| getInputTypes () | |
| getOutputType () | |
| getOutput () | |
| setInput (array $values) | |
| getInput () | |
| unfoldTask () | |
| getRemoveOption () | |
| getAbortOption () | |
| run (array $input, Observer $observer) | |
| isStateless () | |
| getInput () | |
| getExpectedTimeOfTaskInSeconds () | |
Protected Member Functions | |
| initTask () | |
| updateTask (array $data) | |
| getScormCertificates () | |
| Get certificates for scorm objects. More... | |
| getTestCertificates () | |
| Get certificates for test objects. More... | |
| getExerciseCertificates () | |
| Get certificates for exercise objects. More... | |
| getCourseCertificates () | |
| Get certificates for course objects. More... | |
Protected Member Functions inherited from ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask | |
| checkTypes ($values) | |
| extractType ($value) | |
Protected Attributes | |
| $db_table | |
| $user_id | |
| $tree | |
| $db | |
| $event_handler | |
| $task_factory | |
Protected Attributes inherited from ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask | |
| $input = [] | |
| $output | |
Private Attributes | |
| $logger | |
| $types | |
Additional Inherited Members | |
Data Fields inherited from ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask | |
| const | MAIN_REMOVE = 'bt_main_remove' |
| const | MAIN_ABORT = 'bt_main_abort' |
Class ilCertificateMigrationJob.
Definition at line 35 of file class.ilCertificateMigrationJob.php.
|
protected |
Get certificates for course objects.
Definition at line 515 of file class.ilCertificateMigrationJob.php.
References $data, ilParticipants\_getMembershipByType(), ilCourseCertificateAdapter\_hasUserCertificate(), ilCourseCertificateAdapter\_preloadListData(), and ilObjectFactory\getInstanceByObjId().
Referenced by run().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Get certificates for exercise objects.
Definition at line 488 of file class.ilCertificateMigrationJob.php.
References $data, ilObjExercise\_lookupFinishedUserExercises(), and ilObjectFactory\getInstanceByObjId().
Referenced by run().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCertificateMigrationJob::getExpectedTimeOfTaskInSeconds | ( | ) |
Implements ILIAS\BackgroundTasks\Task\Job.
Definition at line 278 of file class.ilCertificateMigrationJob.php.
| ilCertificateMigrationJob::getInputTypes | ( | ) |
Implements ILIAS\BackgroundTasks\Task.
Definition at line 286 of file class.ilCertificateMigrationJob.php.
| ilCertificateMigrationJob::getOutputType | ( | ) |
Implements ILIAS\BackgroundTasks\Task.
Definition at line 296 of file class.ilCertificateMigrationJob.php.
|
protected |
Get certificates for scorm objects.
Definition at line 384 of file class.ilCertificateMigrationJob.php.
References $data, $root, $type, ilObjUserTracking\_enabledLearningProgress(), ilObjSCORM2004LearningModule\_getCourseCompletionForUser(), ilObjSCORMLearningModule\_getCourseCompletionForUser(), ilLPStatus\_hasUserCompleted(), ilObjSAHSLearningModule\_lookupSubType(), ilObjectFactory\getInstanceByObjId(), and ilCertificate\isActive().
Referenced by run().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCertificateMigrationJob::getTaskInformations | ( | ) |
Definition at line 304 of file class.ilCertificateMigrationJob.php.
References $data, $db, $DIC, and $result.
Referenced by run().
Here is the caller graph for this function:
|
protected |
Get certificates for test objects.
Definition at line 460 of file class.ilCertificateMigrationJob.php.
References $data, $session, ilObjectFactory\getInstanceByObjId(), and ilObjTest\getTestObjIdsWithActiveForUserId().
Referenced by run().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 325 of file class.ilCertificateMigrationJob.php.
References ilCertificateMigrationJobDefinitions\CERT_MIGRATION_STATE_INIT.
Referenced by run().
Here is the caller graph for this function:| ilCertificateMigrationJob::isStateless | ( | ) |
Implements ILIAS\BackgroundTasks\Task\Job.
Definition at line 267 of file class.ilCertificateMigrationJob.php.
| ilCertificateMigrationJob::run | ( | array | $input, |
| Observer | $observer | ||
| ) |
| \ILIAS\BackgroundTasks\Value[] | $input | |
| Observer | $observer |
ILIAS\BackgroundTasks\Exceptions\InvalidArgumentException
Implements ILIAS\BackgroundTasks\Task\Job.
Definition at line 71 of file class.ilCertificateMigrationJob.php.
References $certificate, $certificates, $DIC, $f_time, ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask\$input, ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask\$output, $template, $test, $type, $user, ilObjUserTracking\_enabledLearningProgress(), ilLPStatus\_lookupStatusChanged(), ilCertificateMigrationJobDefinitions\CERT_MIGRATION_JOB_TABLE, ilCertificateMigrationJobDefinitions\CERT_MIGRATION_RETURN_ALREADY_RUNNING, ilCertificateMigrationJobDefinitions\CERT_MIGRATION_RETURN_LOCKED, ilCertificateMigrationJobDefinitions\CERT_MIGRATION_RETURN_SUCCESS, ilCertificateMigrationJobDefinitions\CERT_MIGRATION_STATE_FAILED, ilCertificateMigrationJobDefinitions\CERT_MIGRATION_STATE_FINISHED, ilCertificateMigrationJobDefinitions\CERT_MIGRATION_STATE_RUNNING, getCourseCertificates(), ilCourseParticipants\getDateTimeOfPassed(), getExerciseCertificates(), getScormCertificates(), getTaskInformations(), getTestCertificates(), ILIAS\BackgroundTasks\Observer\heartbeat(), IL_CAL_DATETIME, IL_CAL_UNIX, ILIAS_VERSION_NUMERIC, initTask(), ilCertificate\isObjectActive(), and updateTask().
Here is the call graph for this function:
|
protected |
| array | $data |
Definition at line 346 of file class.ilCertificateMigrationJob.php.
References $data.
Referenced by run().
Here is the caller graph for this function:
|
protected |
Definition at line 47 of file class.ilCertificateMigrationJob.php.
Referenced by getTaskInformations().
|
protected |
Definition at line 38 of file class.ilCertificateMigrationJob.php.
|
protected |
Definition at line 50 of file class.ilCertificateMigrationJob.php.
|
private |
Definition at line 56 of file class.ilCertificateMigrationJob.php.
|
protected |
Definition at line 53 of file class.ilCertificateMigrationJob.php.
|
protected |
Definition at line 44 of file class.ilCertificateMigrationJob.php.
|
private |
Definition at line 58 of file class.ilCertificateMigrationJob.php.
|
protected |
Definition at line 41 of file class.ilCertificateMigrationJob.php.