当前位置: 首页>>代码示例>>PHP>>正文


PHP Tracking::count_number_of_forums_by_course方法代码示例

本文整理汇总了PHP中Tracking::count_number_of_forums_by_course方法的典型用法代码示例。如果您正苦于以下问题:PHP Tracking::count_number_of_forums_by_course方法的具体用法?PHP Tracking::count_number_of_forums_by_course怎么用?PHP Tracking::count_number_of_forums_by_course使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Tracking的用法示例。


在下文中一共展示了Tracking::count_number_of_forums_by_course方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: get_lang

        $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>';
}
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>';
开发者ID:ragebat,项目名称:chamilo-lms,代码行数:31,代码来源:course_log_tools.php

示例2: array

            $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

        }
    } else {
        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>';
开发者ID:KRCM13,项目名称:chamilo-lms,代码行数:31,代码来源:course_log_tools.php


注:本文中的Tracking::count_number_of_forums_by_course方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。