146 $this->lng->txt(
'tst_msg_rand_quest_set_lost_pools'), $this->buildLostQuestionPoolsString()
150 $infoMessage = array();
152 if( !$this->questionSetConfig->isQuestionAmountConfigComplete() )
154 $infoMessage[] = $this->lng->txt(
'tst_msg_rand_quest_set_incomplete_quest_amount_cfg');
159 $this->lng->txt(
'tst_msg_rand_quest_set_change_quest_amount_here'),
160 $this->buildGeneralConfigSubTabLink()
166 $this->lng->txt(
'tst_msg_rand_quest_set_change_quest_amount_here'),
167 $this->buildQuestionSelectionSubTabLink()
171 elseif( !$this->questionSetConfig->hasSourcePoolDefinitions() )
173 $infoMessage[] = $this->lng->txt(
'tst_msg_rand_quest_set_no_src_pool_defs');
175 elseif( !$this->questionSetConfig->isQuestionSetBuildable() )
177 $infoMessage[] = $this->lng->txt(
'tst_msg_rand_quest_set_pass_not_buildable');
181 $infoMessage[] = $this->lng->txt(
'tst_msg_rand_quest_set_pass_buildable');
183 if( $this->questionSetConfig->getLastQuestionSyncTimestamp() )
186 $this->questionSetConfig->getLastQuestionSyncTimestamp(),
IL_CAL_UNIX
202 $infoMessage[] = $this->lng->txt(
'tst_msg_rand_quest_set_no_pools_available');
214 $titles[] = $lostPool->getTitle();
217 return implode(
', ', $titles);
246 $href = $this->ctrl->getLinkTarget(
249 $label = $this->lng->txt(
'tst_btn_rebuild_random_question_stage');
251 return "<a href=\"{$href}\">{$label}</a>";
256 $href = $this->ctrl->getLinkTarget(
260 $label = $this->lng->txt(
'tst_rnd_quest_cfg_tab_general');
262 return "<a href=\"{$href}\">{$label}</a>";
267 $href = $this->ctrl->getLinkTarget(
271 $label = $this->lng->txt(
'tst_rnd_quest_cfg_tab_pool');
273 return "<a href=\"{$href}\">{$label}</a>";
282 if( $this->
getContext() != self::CONTEXT_POOL_SELECTION )
287 if( $this->questionSetConfig->doesSelectableQuestionPoolsExist() )
301 if( $this->
getContext() != self::CONTEXT_GENERAL_CONFIG )
306 if( !$this->questionSetConfig->isQuestionAmountConfigurationModePerPool() )
320 if( $this->
getContext() != self::CONTEXT_POOL_SELECTION )
325 if( !$this->questionSetConfig->isQuestionAmountConfigurationModePerTest() )
sprintf('%.4f', $callTime)
An exception for terminatinating execution or to throw for unit testing.
This class provides processing control methods.
static formatDate(ilDateTime $date)
Format a date @access public.
@classDescription Date and time handling
const CMD_BUILD_QUESTION_STAGE
const HTTP_PARAM_AFTER_REBUILD_QUESTION_STAGE_CMD
const CMD_SHOW_SRC_POOL_DEF_LIST
const CMD_SHOW_GENERAL_CONFIG_FORM
buildLostQuestionPoolsString()
__construct(ilLanguage $lng, ilCtrl $ctrl)
isQuestionAmountConfigPerTestHintRequired()
setQuestionSetConfig($questionSetConfig)
const CONTEXT_POOL_SELECTION
getAfterRebuildQuestionStageCommand()
setParticipantDataExists($participantDataExists)
buildQuestionStageRebuildLink()
const CONTEXT_GENERAL_CONFIG
isNoAvailableQuestionPoolsHintRequired()
isQuestionAmountConfigPerPoolHintRequired()
buildQuestionSelectionSubTabLink()
buildGeneralConfigSubTabLink()
doesParticipantDataExists()
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.