本文整理汇总了PHP中feedback_get_incomplete_users函数的典型用法代码示例。如果您正苦于以下问题:PHP feedback_get_incomplete_users函数的具体用法?PHP feedback_get_incomplete_users怎么用?PHP feedback_get_incomplete_users使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了feedback_get_incomplete_users函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: feedback_count_incomplete_users
/**
* count users which have not completed the feedback
*
* @global object
* @param object $cm
* @param int $group single groupid
* @return int count of userrecords
*/
function feedback_count_incomplete_users($cm, $group = false) {
if ($allusers = feedback_get_incomplete_users($cm, $group)) {
return count($allusers);
}
return 0;
}
示例2: feedback_count_incomplete_users
$usedgroupid = false;
}
$matchcount = feedback_count_incomplete_users($cm, $usedgroupid);
$table->initialbars(false);
if ($showall) {
$startpage = false;
$pagecount = false;
} else {
$table->pagesize($perpage, $matchcount);
$startpage = $table->get_page_start();
$pagecount = $table->get_page_size();
}
$students = feedback_get_incomplete_users($cm, $usedgroupid, $sort, $startpage, $pagecount);
//####### viewreports-start
//print the list of students
echo $OUTPUT->heading(get_string('non_respondents_students', 'feedback', $matchcount), 4);
echo isset($groupselect) ? $groupselect : '';
echo '<div class="clearer"></div>';
if (!$students) {
echo $OUTPUT->notification(get_string('noexistingparticipants', 'enrol'));
} else {
if (has_capability('moodle/course:bulkmessaging', $coursecontext)) {
echo '<form class="mform" action="show_nonrespondents.php" method="post" id="feedback_sendmessageform">';
}
foreach ($students as $student) {
$user = $DB->get_record('user', array('id'=>$student));