150 $infoMessage =
array();
152 if( !$this->questionSetConfig->isQuestionAmountConfigComplete() )
154 $infoMessage[] = $this->lng->txt(
'tst_msg_rand_quest_set_incomplete_quest_amount_cfg');
158 $infoMessage[] = sprintf(
159 $this->lng->txt(
'tst_msg_rand_quest_set_change_quest_amount_here'),
165 $infoMessage[] = sprintf(
166 $this->lng->txt(
'tst_msg_rand_quest_set_change_quest_amount_here'),
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 189 $infoMessage[] = sprintf(
202 $infoMessage[] = $this->lng->txt(
'tst_msg_rand_quest_set_no_pools_available');
214 $titles[] = $lostPool->getTitle();
217 return implode(
', ', $titles);
224 case self::CONTEXT_POOL_SELECTION:
228 case self::CONTEXT_GENERAL_CONFIG:
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() )
This class provides processing control methods.
buildQuestionStageRebuildLink()
setQuestionSetConfig($questionSetConfig)
buildQuestionSelectionSubTabLink()
isQuestionAmountConfigPerTestHintRequired()
const CONTEXT_POOL_SELECTION
doesParticipantDataExists()
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
const CMD_SHOW_SRC_POOL_DEF_LIST
getAfterRebuildQuestionStageCommand()
const CONTEXT_GENERAL_CONFIG
__construct(ilLanguage $lng, ilCtrl $ctrl)
isNoAvailableQuestionPoolsHintRequired()
static formatDate(ilDateTime $date)
Format a date public.
buildLostQuestionPoolsString()
Create styles array
The data for the language used.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
setParticipantDataExists($participantDataExists)
const HTTP_PARAM_AFTER_REBUILD_QUESTION_STAGE_CMD
const CMD_SHOW_GENERAL_CONFIG_FORM
buildGeneralConfigSubTabLink()
const CMD_BUILD_QUESTION_STAGE
isQuestionAmountConfigPerPoolHintRequired()