当前位置: 首页>>代码示例>>PHP>>正文


PHP learnpath::get_iv_interactions_array方法代码示例

本文整理汇总了PHP中learnpath::get_iv_interactions_array方法的典型用法代码示例。如果您正苦于以下问题:PHP learnpath::get_iv_interactions_array方法的具体用法?PHP learnpath::get_iv_interactions_array怎么用?PHP learnpath::get_iv_interactions_array使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在learnpath的用法示例。


在下文中一共展示了learnpath::get_iv_interactions_array方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getLpStats


//.........这里部分代码省略.........
                         $output .= '<tr class="' . $oddclass . '">
                                 <td></td>
                                 <td>' . $extend_attempt_link . '</td>
                                 <td colspan="3">' . get_lang('Attempt') . ' ' . $attemptCount . '</td>
                                 <td colspan="2">' . learnpathItem::humanize_status($lesson_status, true, $type) . '</td>
                                 <td colspan="2">' . $view_score . '</td>
                                 <td colspan="2">' . $time . '</td>
                                 ' . $action . '
                             </tr>';
                         $attemptCount++;
                         if (!empty($export_csv)) {
                             $temp = array();
                             $temp[] = $title = Security::remove_XSS($title);
                             $temp[] = Security::remove_XSS(learnpathItem::humanize_status($lesson_status, false, $type));
                             if ($row['item_type'] == 'quiz') {
                                 if (!$is_allowed_to_edit && $result_disabled_ext_all) {
                                     $temp[] = '/';
                                 } else {
                                     $temp[] = $score == 0 ? '0/' . $maxscore : ($maxscore == 0 ? $score : $score . '/' . float_format($maxscore, 1));
                                 }
                             } else {
                                 $temp[] = $score == 0 ? '/' : ($maxscore == 0 ? $score : $score . '/' . float_format($maxscore, 1));
                             }
                             $temp[] = $time;
                             $csv_content[] = $temp;
                         }
                     }
                     $counter++;
                     $action = null;
                     if ($type == 'classic') {
                         $action = '<td></td>';
                     }
                     if ($extend_this_attempt || $extend_all) {
                         $list1 = learnpath::get_iv_interactions_array($row['iv_id']);
                         foreach ($list1 as $id => $interaction) {
                             if ($counter % 2 == 0) {
                                 $oddclass = 'row_odd';
                             } else {
                                 $oddclass = 'row_even';
                             }
                             $student_response = urldecode($interaction['student_response']);
                             $content_student_response = explode('__|', $student_response);
                             if (count($content_student_response) > 0) {
                                 if (count($content_student_response) >= 3) {
                                     // Pop the element off the end of array.
                                     array_pop($content_student_response);
                                 }
                                 $student_response = implode(',', $content_student_response);
                             }
                             $output .= '<tr class="' . $oddclass . '">
                                     <td></td>
                                     <td></td>
                                     <td></td>
                                     <td>' . $interaction['order_id'] . '</td>
                                     <td>' . $interaction['id'] . '</td>
                                     <td colspan="2">' . $interaction['type'] . '</td>
                                     <td>' . $student_response . '</td>
                                     <td>' . $interaction['result'] . '</td>
                                     <td>' . $interaction['latency'] . '</td>
                                     <td>' . $interaction['time'] . '</td>
                                     ' . $action . '
                                 </tr>';
                             $counter++;
                         }
                         $list2 = learnpath::get_iv_objectives_array($row['iv_id']);
                         foreach ($list2 as $id => $interaction) {
开发者ID:feroli1000,项目名称:chamilo-lms,代码行数:67,代码来源:tracking.lib.php

示例2: foreach

             if (!$is_allowed_to_edit && $result_disabled_ext_all) {
                 $temp[] = '/';
             } else {
                 $temp[] = $score == 0 ? '0/' . $maxscore : ($maxscore == 0 ? $score : $score . '/' . Text::float_format($maxscore, 1));
             }
         } else {
             $temp[] = $score == 0 ? '/' : ($maxscore == 0 ? $score : $score . '/' . Text::float_format($maxscore, 1));
         }
         $temp[] = $time;
         $csv_content[] = $temp;
     }
 }
 $counter++;
 //var_dump($extend_this_attempt, $extend_all);
 if ($extend_this_attempt or $extend_all) {
     $list1 = learnpath::get_iv_interactions_array($row['iv_id']);
     foreach ($list1 as $id => $interaction) {
         if ($counter % 2 == 0) {
             $oddclass = 'row_odd';
         } else {
             $oddclass = 'row_even';
         }
         $output .= '<tr class="' . $oddclass . '">
                         <td></td>
                         <td></td>
                         <td></td>
                         <td>' . $interaction['order_id'] . '</td>
                         <td>' . $interaction['id'] . '</td>
                         <td colspan="2">' . $interaction['type'] . '</td>
                         <td>' . urldecode($interaction['student_response']) . '</td>
                         <td>' . $interaction['result'] . '</td>
开发者ID:ragebat,项目名称:chamilo-lms,代码行数:31,代码来源:lp_stats.php


注:本文中的learnpath::get_iv_interactions_array方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。