ILIAS
release_8 Revision v8.19
|
Survey Run Note: The manager should get the current user id passed. More...
Public Member Functions | |
__construct (InternalRepoService $repo_service, InternalDomainService $domain_service, \ilObjSurvey $survey, int $current_user_id, int $appraisee_id=0) | |
getCurrentRunId () | |
hasStarted (int $appraisee=0) | |
hasFinished () | |
belongsToFinishedRun (string $code) | |
Does code belong to current anonymous started, but not finished run? Note: this method acts on the current user, but accepts the passed code and does not retrieve the code from the session. More... | |
getRunsForUser (int $user_id, string $code="") | |
getById (int $run_id) | |
start (int $appraisee_id=0) | |
Starts the survey creating a new run. More... | |
initSession (string $requested_code="") | |
getCode () | |
Get current valid code. More... | |
clearCode () | |
setStartTime (int $first_question) | |
Set start time of run. More... | |
setEndTime () | |
getPageEnter () | |
setPreviewData (int $question_id, array $data) | |
getPreviewData (int $question_id) | |
clearPreviewData (int $question_id) | |
clearAllPreviewData () | |
setErrors (array $errors) | |
getErrors () | |
clearErrors () | |
setPostData (array $data) | |
getPostData () | |
clearPostData () | |
Protected Member Functions | |
codeNeeded () | |
checkUserParameters (int $user_id, string $code="") | |
Check user parameters. More... | |
getCurrentState () | |
Protected Attributes | |
ilLanguage | $lng |
ILIAS Survey Code CodeManager | $code_manager |
RunSessionRepo | $session_repo |
RunDBRepository | $repo |
int | $survey_id |
Mode FeatureConfig | $feature_config |
InternalDomainService | $domain_service |
ilObjSurvey | $survey |
int | $current_user_id |
int | $appraisee_id |
Survey Run Note: The manager should get the current user id passed.
The manager also receives the current access key (code) from the session manager automatically.
Definition at line 34 of file class.RunManager.php.
ILIAS\Survey\Execution\RunManager::__construct | ( | InternalRepoService | $repo_service, |
InternalDomainService | $domain_service, | ||
\ilObjSurvey | $survey, | ||
int | $current_user_id, | ||
int | $appraisee_id = 0 |
||
) |
Definition at line 47 of file class.RunManager.php.
References ILIAS\Survey\Execution\RunManager\$appraisee_id, ILIAS\Survey\Execution\RunManager\$current_user_id, ILIAS\Survey\Execution\RunManager\$domain_service, ILIAS\Survey\Execution\RunManager\$survey, ILIAS\Survey\InternalDomainService\code(), ILIAS\Survey\InternalRepoService\execution(), ilObjSurvey\getMode(), ilObjSurvey\getSurveyId(), ILIAS\Repository\lng(), and ILIAS\Survey\InternalDomainService\modeFeatureConfig().
ILIAS\Survey\Execution\RunManager::belongsToFinishedRun | ( | string | $code | ) |
Does code belong to current anonymous started, but not finished run? Note: this method acts on the current user, but accepts the passed code and does not retrieve the code from the session.
Definition at line 145 of file class.RunManager.php.
References ILIAS\Survey\Execution\RunManager\$repo, ILIAS\Survey\Execution\RunDBRepository\FINISHED, ILIAS\Survey\Execution\RunDBRepository\getCurrentRunId(), and ILIAS\Survey\Execution\RunDBRepository\getState().
Referenced by ILIAS\Survey\Execution\RunManager\initSession().
|
protected |
Check user parameters.
Definition at line 95 of file class.RunManager.php.
References ILIAS\Survey\Execution\RunManager\$appraisee_id, and ilObjSurvey\MODE_SELF_EVAL.
Referenced by ILIAS\Survey\Execution\RunManager\getCurrentRunId().
ILIAS\Survey\Execution\RunManager::clearAllPreviewData | ( | ) |
Definition at line 314 of file class.RunManager.php.
ILIAS\Survey\Execution\RunManager::clearCode | ( | ) |
Definition at line 269 of file class.RunManager.php.
Referenced by ILIAS\Survey\Execution\RunManager\initSession().
ILIAS\Survey\Execution\RunManager::clearErrors | ( | ) |
Definition at line 329 of file class.RunManager.php.
ILIAS\Survey\Execution\RunManager::clearPostData | ( | ) |
Definition at line 344 of file class.RunManager.php.
ILIAS\Survey\Execution\RunManager::clearPreviewData | ( | int | $question_id | ) |
Definition at line 309 of file class.RunManager.php.
|
protected |
Definition at line 67 of file class.RunManager.php.
Referenced by ILIAS\Survey\Execution\RunManager\getCurrentRunId().
ILIAS\Survey\Execution\RunManager::getById | ( | int | $run_id | ) |
Definition at line 178 of file class.RunManager.php.
ILIAS\Survey\Execution\RunManager::getCode | ( | ) |
Get current valid code.
Definition at line 264 of file class.RunManager.php.
Referenced by ILIAS\Survey\Execution\RunManager\getCurrentRunId(), and ILIAS\Survey\Execution\RunManager\start().
ILIAS\Survey\Execution\RunManager::getCurrentRunId | ( | ) |
Definition at line 72 of file class.RunManager.php.
References ILIAS\Survey\Execution\RunManager\$current_user_id, ILIAS\Survey\Execution\RunManager\$repo, ILIAS\Survey\Execution\RunManager\$survey_id, ILIAS\Survey\Execution\RunManager\checkUserParameters(), ILIAS\Survey\Execution\RunManager\codeNeeded(), ILIAS\Survey\Execution\RunManager\getCode(), and ILIAS\Survey\Execution\RunDBRepository\getCurrentRunId().
Referenced by ILIAS\Survey\Execution\RunManager\getCurrentState(), ILIAS\Survey\Execution\RunManager\setEndTime(), and ILIAS\Survey\Execution\RunManager\setStartTime().
|
protected |
Definition at line 118 of file class.RunManager.php.
References ILIAS\Survey\Execution\RunManager\$repo, ILIAS\Survey\Execution\RunManager\getCurrentRunId(), and ILIAS\Survey\Execution\RunDBRepository\getState().
Referenced by ILIAS\Survey\Execution\RunManager\hasFinished(), and ILIAS\Survey\Execution\RunManager\hasStarted().
ILIAS\Survey\Execution\RunManager::getErrors | ( | ) |
Definition at line 324 of file class.RunManager.php.
ILIAS\Survey\Execution\RunManager::getPageEnter | ( | ) |
Definition at line 294 of file class.RunManager.php.
ILIAS\Survey\Execution\RunManager::getPostData | ( | ) |
Definition at line 339 of file class.RunManager.php.
ILIAS\Survey\Execution\RunManager::getPreviewData | ( | int | $question_id | ) |
Definition at line 304 of file class.RunManager.php.
ILIAS\Survey\Execution\RunManager::getRunsForUser | ( | int | $user_id, |
string | $code = "" |
||
) |
Definition at line 171 of file class.RunManager.php.
ILIAS\Survey\Execution\RunManager::hasFinished | ( | ) |
Definition at line 134 of file class.RunManager.php.
References ILIAS\Survey\Execution\RunDBRepository\FINISHED, and ILIAS\Survey\Execution\RunManager\getCurrentState().
ILIAS\Survey\Execution\RunManager::hasStarted | ( | int | $appraisee = 0 | ) |
Definition at line 125 of file class.RunManager.php.
References ILIAS\Survey\Execution\RunDBRepository\FINISHED, ILIAS\Survey\Execution\RunManager\getCurrentState(), and ILIAS\Survey\Execution\RunDBRepository\STARTED_NOT_FINISHED.
ILIAS\Survey\Execution\RunManager::initSession | ( | string | $requested_code = "" | ) |
Definition at line 206 of file class.RunManager.php.
References ILIAS\Survey\Execution\RunManager\$current_user_id, ILIAS\Survey\Execution\RunManager\$session_repo, ILIAS\Survey\Execution\RunManager\$survey, ILIAS\Survey\Execution\RunManager\belongsToFinishedRun(), ILIAS\Survey\Execution\RunManager\clearCode(), ILIAS\Survey\Execution\RunSessionRepo\getCode(), ILIAS\Repository\lng(), and ILIAS\Survey\Execution\RunSessionRepo\setCode().
ILIAS\Survey\Execution\RunManager::setEndTime | ( | ) |
Definition at line 286 of file class.RunManager.php.
References ILIAS\Survey\Execution\RunManager\getCurrentRunId().
ILIAS\Survey\Execution\RunManager::setErrors | ( | array | $errors | ) |
Definition at line 319 of file class.RunManager.php.
ILIAS\Survey\Execution\RunManager::setPostData | ( | array | $data | ) |
Definition at line 334 of file class.RunManager.php.
ILIAS\Survey\Execution\RunManager::setPreviewData | ( | int | $question_id, |
array | $data | ||
) |
Definition at line 299 of file class.RunManager.php.
ILIAS\Survey\Execution\RunManager::setStartTime | ( | int | $first_question | ) |
Set start time of run.
Definition at line 277 of file class.RunManager.php.
References ILIAS\Survey\Execution\RunManager\getCurrentRunId().
ILIAS\Survey\Execution\RunManager::start | ( | int | $appraisee_id = 0 | ) |
Starts the survey creating a new run.
Definition at line 190 of file class.RunManager.php.
References ILIAS\Survey\Execution\RunManager\$appraisee_id, ILIAS\Survey\Execution\RunManager\$current_user_id, ILIAS\Survey\Execution\RunManager\$survey, and ILIAS\Survey\Execution\RunManager\getCode().
|
protected |
Definition at line 45 of file class.RunManager.php.
Referenced by ILIAS\Survey\Execution\RunManager\__construct(), ILIAS\Survey\Execution\RunManager\checkUserParameters(), and ILIAS\Survey\Execution\RunManager\start().
|
protected |
Definition at line 37 of file class.RunManager.php.
|
protected |
Definition at line 44 of file class.RunManager.php.
Referenced by ILIAS\Survey\Execution\RunManager\__construct(), ILIAS\Survey\Execution\RunManager\getCurrentRunId(), ILIAS\Survey\Execution\RunManager\initSession(), and ILIAS\Survey\Execution\RunManager\start().
|
protected |
Definition at line 42 of file class.RunManager.php.
Referenced by ILIAS\Survey\Execution\RunManager\__construct().
|
protected |
Definition at line 41 of file class.RunManager.php.
|
protected |
Definition at line 36 of file class.RunManager.php.
|
protected |
Definition at line 39 of file class.RunManager.php.
Referenced by ILIAS\Survey\Execution\RunManager\belongsToFinishedRun(), ILIAS\Survey\Execution\RunManager\getCurrentRunId(), and ILIAS\Survey\Execution\RunManager\getCurrentState().
|
protected |
Definition at line 38 of file class.RunManager.php.
Referenced by ILIAS\Survey\Execution\RunManager\initSession().
|
protected |
Definition at line 43 of file class.RunManager.php.
Referenced by ILIAS\Survey\Execution\RunManager\__construct(), ILIAS\Survey\Execution\RunManager\initSession(), and ILIAS\Survey\Execution\RunManager\start().
|
protected |
Definition at line 40 of file class.RunManager.php.
Referenced by ILIAS\Survey\Execution\RunManager\getCurrentRunId().