當前位置: 首頁>>代碼示例>>PHP>>正文


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怎麽用?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') . '&nbsp;-&nbsp;<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>';
開發者ID:ragebat,項目名稱:chamilo-lms,代碼行數:31,代碼來源:course_log_tools.php

示例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">&nbsp;' . get_lang('Forum') . '&nbsp;-&nbsp;<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
開發者ID:RusticiSoftware,項目名稱:SCORMCloud_DokeosMod,代碼行數:31,代碼來源:courseLog.php

示例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') . '&nbsp;-&nbsp;<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.
開發者ID:KRCM13,項目名稱:chamilo-lms,代碼行數:31,代碼來源:course_log_tools.php


注:本文中的Tracking::count_number_of_posts_by_course方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。