本文整理汇总了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;
}