本文整理匯總了PHP中Tracking::count_number_of_posts_by_course方法的典型用法代碼示例。如果您正苦於以下問題:PHP Tracking::count_number_of_posts_by_course方法的具體用法?PHP Tracking::count_number_of_posts_by_course怎麽用?PHP Tracking::count_number_of_posts_by_course使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Tracking
的用法示例。
在下文中一共展示了Tracking::count_number_of_posts_by_course方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: get_lang
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>';
// 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>';
示例2: array
if ($export_csv) {
$temp = array(get_lang('NoExercises'), '');
$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
示例3: get_lang
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>';
// Chat tracking.