本文整理汇总了PHP中Tracking::count_number_of_threads_by_course方法的典型用法代码示例。如果您正苦于以下问题:PHP Tracking::count_number_of_threads_by_course方法的具体用法?PHP Tracking::count_number_of_threads_by_course怎么用?PHP Tracking::count_number_of_threads_by_course使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tracking
的用法示例。
在下文中一共展示了Tracking::count_number_of_threads_by_course方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_lang
}
echo '</table></div>';
echo '<div class="clear"></div>';
// Forums tracking.
echo '<div class="report_section">
' . Display::page_subheader2(Display::return_icon('forum.gif', get_lang('Forum')) . get_lang('Forum') . ' - <a href="../forum/index.php?cidReq=' . $_course['id'] . '">' . get_lang('SeeDetail') . '</a>') . '<table class="data_table">';
$filter_by_users = array();
if (!empty($group_id)) {
$filter_by_users = $student_ids;
}
$count_number_of_posts_by_course = Tracking::count_number_of_posts_by_course($course_code, $session_id, $filter_by_users);
$count_number_of_forums_by_course = 0;
if (empty($group_id)) {
$count_number_of_forums_by_course = Tracking::count_number_of_forums_by_course($course_code, $session_id, $filter_by_users);
}
$count_number_of_threads_by_course = Tracking::count_number_of_threads_by_course($course_code, $session_id, $filter_by_users);
if ($export_csv) {
$csv_content[] = array(get_lang('Forum'), '');
if (empty($group_id)) {
$csv_content[] = array(get_lang('ForumForumsNumber', ''), $count_number_of_forums_by_course);
}
$csv_content[] = array(get_lang('ForumThreadsNumber', ''), $count_number_of_threads_by_course);
$csv_content[] = array(get_lang('ForumPostsNumber', ''), $count_number_of_posts_by_course);
}
if (empty($group_id)) {
echo '<tr><td>' . get_lang('ForumForumsNumber') . '</td><td align="right">' . $count_number_of_forums_by_course . '</td></tr>';
}
echo '<tr><td>' . get_lang('ForumThreadsNumber') . '</td><td align="right">' . $count_number_of_threads_by_course . '</td></tr>';
echo '<tr><td>' . get_lang('ForumPostsNumber') . '</td><td align="right">' . $count_number_of_posts_by_course . '</td></tr>';
echo '</table></div>';
echo '<div class="clear"></div>';
示例2: get_lang
$csv_content[] = $temp;
}
}
echo '</table></div>';
echo '<div class="clear"></div>';
/**********************
* FORUMS
**********************/
echo '<div class="admin_section">
<h4>
<img src="../img/forum.gif" align="absbottom"> ' . get_lang('Forum') . ' - <a href="../forum/index.php?cidReq=' . $_course['id'] . '">' . get_lang('SeeDetail') . '</a>
</h4>
<table class="data_table">';
$count_number_of_posts_by_course = Tracking::count_number_of_posts_by_course($_course['id']);
$count_number_of_forums_by_course = Tracking::count_number_of_forums_by_course($_course['id']);
$count_number_of_threads_by_course = Tracking::count_number_of_threads_by_course($_course['id']);
if ($export_csv) {
$csv_content[] = array(get_lang('Forum'), '');
$csv_content[] = array(get_lang('ForumForumsNumber'), $count_number_of_forums_by_course);
$csv_content[] = array(get_lang('ForumThreadsNumber'), $count_number_of_threads_by_course);
$csv_content[] = array(get_lang('ForumPostsNumber'), $count_number_of_posts_by_course);
}
echo '<tr><td>' . get_lang('ForumForumsNumber') . '</td><td align="right">' . $count_number_of_forums_by_course . '</td></tr>';
echo '<tr><td>' . get_lang('ForumThreadsNumber') . '</td><td align="right">' . $count_number_of_threads_by_course . '</td></tr>';
echo '<tr><td>' . get_lang('ForumPostsNumber') . '</td><td align="right">' . $count_number_of_posts_by_course . '</td></tr>';
echo '</table></div>';
echo '<div class="clear"></div>';
/**********************
* CHAT
**********************/
echo '<div class="admin_section">
示例3: get_lang
} else {
echo '<tr><td>' . get_lang('NoExercises') . '</td></tr>';
if ($export_csv) {
$temp = array(get_lang('NoExercises', ''), '');
$csv_content[] = $temp;
}
}
echo '</table></div>';
echo '<div class="clear"></div>';
}
$filterByUsers = array();
if (!empty($groupId)) {
$filterByUsers = $student_ids;
}
$count_number_of_forums_by_course = Tracking::count_number_of_forums_by_course($course_code, $session_id, $groupId);
$count_number_of_threads_by_course = Tracking::count_number_of_threads_by_course($course_code, $session_id, $groupId);
$count_number_of_posts_by_course = Tracking::count_number_of_posts_by_course($course_code, $session_id, $groupId);
if ($export_csv) {
$csv_content[] = array(get_lang('Forum'));
$csv_content[] = array(get_lang('ForumForumsNumber'), $count_number_of_forums_by_course);
$csv_content[] = array(get_lang('ForumThreadsNumber'), $count_number_of_threads_by_course);
$csv_content[] = array(get_lang('ForumPostsNumber'), $count_number_of_posts_by_course);
}
// Forums tracking.
echo '<div class="report_section">
' . Display::page_subheader(Display::return_icon('forum.gif', get_lang('Forum')) . get_lang('Forum') . ' - <a href="../forum/index.php?' . api_get_cidreq() . '">' . get_lang('SeeDetail') . '</a>') . '<table class="data_table">';
echo '<tr><td>' . get_lang('ForumForumsNumber') . '</td><td align="right">' . $count_number_of_forums_by_course . '</td></tr>';
echo '<tr><td>' . get_lang('ForumThreadsNumber') . '</td><td align="right">' . $count_number_of_threads_by_course . '</td></tr>';
echo '<tr><td>' . get_lang('ForumPostsNumber') . '</td><td align="right">' . $count_number_of_posts_by_course . '</td></tr>';
echo '</table></div>';
echo '<div class="clear"></div>';