本文整理匯總了PHP中Tracking::get_links_most_visited_by_course方法的典型用法代碼示例。如果您正苦於以下問題:PHP Tracking::get_links_most_visited_by_course方法的具體用法?PHP Tracking::get_links_most_visited_by_course怎麽用?PHP Tracking::get_links_most_visited_by_course使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Tracking
的用法示例。
在下文中一共展示了Tracking::get_links_most_visited_by_course方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: get_lang
}
}
} else {
echo '<tr><td>' . get_lang('NoDocumentDownloaded') . '</td></tr>';
if ($export_csv) {
$temp = array(get_lang('NoDocumentDownloaded', ''), '');
$csv_content[] = $temp;
}
}
echo '</table></div>';
echo '<div class="clear"></div>';
// links tracking
echo '<div class="report_section">
' . Display::page_subheader2(Display::return_icon('link.gif', get_lang('LinksMostClicked')) . ' ' . get_lang('LinksMostClicked')) . '
<table class="data_table">';
$links_most_visited = Tracking::get_links_most_visited_by_course($courseId, $session_id, $filter_by_users);
if ($export_csv) {
$temp = array(get_lang('LinksMostClicked'), '');
$csv_content[] = array('', '');
$csv_content[] = $temp;
}
if (!empty($links_most_visited)) {
foreach ($links_most_visited as $row) {
echo ' <tr>
<td>' . Display::url($row['title'] . ' (' . $row['url'] . ')', $row['url']) . '</td>
<td align="right">' . $row['count_visits'] . ' ' . get_lang('Clicks') . '</td>
</tr>';
if ($export_csv) {
$temp = array($row['title'], $row['count_visits'] . ' ' . get_lang('Clicks', ''));
$csv_content[] = $temp;
}
示例2: get_lang
} else {
echo '<tr><td>' . get_lang('NoDocumentDownloaded') . '</td></tr>';
if ($export_csv) {
$temp = array(get_lang('NoDocumentDownloaded', ''), '');
$csv_content[] = $temp;
}
}
echo '</table></div>';
echo '<div class="clear"></div>';
}
if ($linkReporting) {
// links tracking
echo '<div class="report_section">
' . Display::page_subheader(Display::return_icon('link.gif', get_lang('LinksMostClicked')) . ' ' . get_lang('LinksMostClicked')) . '
<table class="data_table">';
$links_most_visited = Tracking::get_links_most_visited_by_course($course_code, $session_id);
if ($export_csv) {
$temp = array(get_lang('LinksMostClicked'), '');
$csv_content[] = array('', '');
$csv_content[] = $temp;
}
if (!empty($links_most_visited)) {
foreach ($links_most_visited as $row) {
echo ' <tr>
<td>' . Display::url($row['title'] . ' (' . $row['url'] . ')', $row['url']) . '</td>
<td align="right">' . $row['count_visits'] . ' ' . get_lang('Clicks') . '</td>
</tr>';
if ($export_csv) {
$temp = array($row['title'], $row['count_visits'] . ' ' . get_lang('Clicks', ''));
$csv_content[] = $temp;
}