本文整理汇总了PHP中ExerciseLib::create_chat_exercise_session方法的典型用法代码示例。如果您正苦于以下问题:PHP ExerciseLib::create_chat_exercise_session方法的具体用法?PHP ExerciseLib::create_chat_exercise_session怎么用?PHP ExerciseLib::create_chat_exercise_session使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ExerciseLib
的用法示例。
在下文中一共展示了ExerciseLib::create_chat_exercise_session方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
$count = 1;
foreach ($attemptQuestionList as $question) {
if ($last['question_id'] == $question) {
break;
}
$count++;
}
$current_question = $count;
}
}
if ($debug) {
error_log("5 exercise_stat_info[] exists getting exe_id {$exe_id} ");
}
}
// Array to check in order to block the chat
ExerciseLib::create_chat_exercise_session($exe_id);
if ($debug) {
error_log('6. $objExercise->get_stat_track_exercise_info function called:: ' . print_r($exercise_stat_info, 1));
}
if (!empty($exercise_stat_info['questions_to_check'])) {
$my_remind_list = $exercise_stat_info['questions_to_check'];
$my_remind_list = explode(',', $my_remind_list);
$my_remind_list = array_filter($my_remind_list);
}
$params = "exe_id={$exe_id}&exerciseId={$exerciseId}&origin={$origin}&learnpath_id={$learnpath_id}&learnpath_item_id={$learnpath_item_id}&learnpath_item_view_id={$learnpath_item_view_id}&" . api_get_cidreq();
if ($debug) {
error_log("6.1 params: -> {$params}");
}
if ($reminder == 2 && empty($my_remind_list)) {
if ($debug) {
error_log("6.2 calling the exercise_reminder.php ");