本文整理匯總了PHP中Tracking::chat_connections_during_last_x_days_by_course方法的典型用法代碼示例。如果您正苦於以下問題:PHP Tracking::chat_connections_during_last_x_days_by_course方法的具體用法?PHP Tracking::chat_connections_during_last_x_days_by_course怎麽用?PHP Tracking::chat_connections_during_last_x_days_by_course使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Tracking
的用法示例。
在下文中一共展示了Tracking::chat_connections_during_last_x_days_by_course方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
}
$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>';
// Chat tracking.
echo '<div class="report_section">
' . Display::page_subheader2(Display::return_icon('chat.gif', get_lang('Chat')) . get_lang('Chat')) . '
<table class="data_table">';
$chat_connections_during_last_x_days_by_course = Tracking::chat_connections_during_last_x_days_by_course($courseId, 7, $session_id, $filter_by_users);
if ($export_csv) {
$csv_content[] = array(get_lang('Chat', ''), '');
$csv_content[] = array(sprintf(get_lang('ChatConnectionsDuringLastXDays', ''), '7'), $chat_connections_during_last_x_days_by_course);
}
echo '<tr><td>' . sprintf(get_lang('ChatConnectionsDuringLastXDays'), '7') . '</td><td align="right">' . $chat_connections_during_last_x_days_by_course . '</td></tr>';
echo '</table></div>';
echo '<div class="clear"></div>';
// Tools tracking.
echo '<div class="report_section">
' . Display::page_subheader2(Display::return_icon('acces_tool.gif', get_lang('ToolsMostUsed')) . get_lang('ToolsMostUsed')) . '
<table class="data_table">';
$tools_most_used = Tracking::get_tools_most_used_by_course($courseId, $session_id, $filter_by_users);
if ($export_csv) {
$temp = array(get_lang('ToolsMostUsed'), '');
$csv_content[] = $temp;
示例2: array
$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">
<h4>
<img src="../img/chat.gif" align="absbottom"> ' . get_lang('Chat') . '</a>
</h4>
<table class="data_table">';
$chat_connections_during_last_x_days_by_course = Tracking::chat_connections_during_last_x_days_by_course($_course['id'], 7);
if ($export_csv) {
$csv_content[] = array(get_lang('Chat'), '');
$csv_content[] = array(sprintf(get_lang('ChatConnectionsDuringLastXDays'), '7'), $chat_connections_during_last_x_days_by_course);
}
echo '<tr><td>' . sprintf(get_lang('ChatConnectionsDuringLastXDays'), '7') . '</td><td align="right">' . $chat_connections_during_last_x_days_by_course . '</td></tr>';
echo '</table></div>';
echo '<div class="clear"></div>';
/**********************
* TOOLS
**********************/
echo '<div class="admin_section">
<h4>
<img src="../img/acces_tool.gif" align="absbottom"> ' . get_lang('ToolsMostUsed') . '
</h4>
<table class="data_table">';
示例3: array
$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.
if ($showChatReporting) {
echo '<div class="report_section">
' . Display::page_subheader(Display::return_icon('chat.gif', get_lang('Chat')) . get_lang('Chat')) . '
<table class="data_table">';
$chat_connections_during_last_x_days_by_course = Tracking::chat_connections_during_last_x_days_by_course($course_code, 7, $session_id);
if ($export_csv) {
$csv_content[] = array(get_lang('Chat', ''), '');
$csv_content[] = array(sprintf(get_lang('ChatConnectionsDuringLastXDays', ''), '7'), $chat_connections_during_last_x_days_by_course);
}
echo '<tr><td>' . sprintf(get_lang('ChatConnectionsDuringLastXDays'), '7') . '</td><td align="right">' . $chat_connections_during_last_x_days_by_course . '</td></tr>';
echo '</table></div>';
echo '<div class="clear"></div>';
}
// Tools tracking.
if ($showTrackingReporting) {
echo '<div class="report_section">
' . Display::page_subheader(Display::return_icon('acces_tool.gif', get_lang('ToolsMostUsed')) . get_lang('ToolsMostUsed')) . '
<table class="data_table">';
$tools_most_used = Tracking::get_tools_most_used_by_course($course_id, $session_id);
if ($export_csv) {