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


PHP learnpath::get_iv_objectives_array方法代码示例

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


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

示例1: getLpStats


//.........这里部分代码省略.........
                     }
                     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) {
                             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 colspan="2">' . $interaction['objective_id'] . '</td>
                                     <td colspan="2">' . $interaction['status'] . '</td>
                                     <td>' . $interaction['score_raw'] . '</td>
                                     <td>' . $interaction['score_max'] . '</td>
                                     <td>' . $interaction['score_min'] . '</td>
                                     ' . $action . '
                                  </tr>';
                             $counter++;
                         }
                     }
                 } while ($row = Database::fetch_array($result));
             } elseif ($num > 0) {
                 // Not extended.
                 $row = Database::fetch_array($result, 'ASSOC');
                 $my_id = $row['myid'];
                 $my_lp_id = $row['mylpid'];
                 $my_lp_view_id = $row['mylpviewid'];
                 $my_path = $row['path'];
                 $result_disabled_ext_all = false;
                 if ($row['item_type'] == 'quiz') {
                     // Check results_disabled in quiz table.
开发者ID:feroli1000,项目名称:chamilo-lms,代码行数:67,代码来源:tracking.lib.php

示例2: urldecode

     $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>
                     <td>' . $interaction['latency'] . '</td>
                     <td>' . $interaction['time'] . '</td>
                     <td></td>
                </tr>';
     $counter++;
 }
 $list2 = learnpath::get_iv_objectives_array($row['iv_id']);
 foreach ($list2 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 colspan="2">' . $interaction['objective_id'] . '</td>
                     <td colspan="2">' . $interaction['status'] . '</td>
                     <td>' . $interaction['score_raw'] . '</td>
                     <td>' . $interaction['score_max'] . '</td>
开发者ID:ragebat,项目名称:chamilo-lms,代码行数:31,代码来源:lp_stats.php


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