function stats_report_flightpath_use_summary
Search API
7.x stats.module | stats_report_flightpath_use_summary() |
6.x stats.module | stats_report_flightpath_use_summary() |
4.x stats.module | stats_report_flightpath_use_summary() |
5.x stats.module | stats_report_flightpath_use_summary() |
This report shows common usages in FlightPath by all users.
This is a helpful report for determining which functionality is most popular in FlightPath
Return value
unknown
File
- modules/
stats/ stats.module, line 905 - This module displays statistics and reports for FlightPath
Code
function stats_report_flightpath_use_summary() {
$rtn = "";
$start_date = trim(addslashes(@$_REQUEST ["start_date"]));
$end_date = trim(addslashes(@$_REQUEST ["end_date"]));
$rtn .= stats_draw_date_range_form("stats/reports/flightpath-use-summary", $start_date, $end_date);
if ($start_date == "" || $end_date == "") {
return $rtn;
}
$start_date .= " 00:00:00"; // make it start at midnight of the startDate.
$end_date .= " 23:59:59"; // make it go through to midnight of the endDate.
// Okay, now we get our various counts....
// Logins...
$u_student = stats_get_log_count("login", "", true, $start_date, $end_date, true);
$t_student = stats_get_log_count("login", "", false, $start_date, $end_date, true);
$u_staff = stats_get_log_count("login", "", true, $start_date, $end_date, false);
$t_staff = stats_get_log_count("login", "", false, $start_date, $end_date, false);
$rtn .= "<b>System Logins</b>
<blockquote>
Unique student logins: $u_student<br>
Total student logins: $t_student<br>
------- <br>
Unique faculty/staff logins: $u_staff<br>
Total faculty/staff logins: $t_staff
</blockquote>
";
// Advisings...
$regular_advisings = stats_get_log_count("save_adv_active", "", false, $start_date, $end_date, false);
$wi_advisings = stats_get_log_count("save_adv_active_whatif", "", false, $start_date, $end_date, false);
$total_advisings = $regular_advisings + $wi_advisings;
$rtn .= "<b>Advisings</b>
<blockquote>
Total student advisings: $total_advisings <br>
------- <br>
Regular advisings: $regular_advisings<br>
What If advisings: $wi_advisings
</blockquote>
";
// Comments...
$total = stats_get_log_count("save_comment", "", false, $start_date, $end_date, false);
$unique = stats_get_log_count("save_comment", "", true, $start_date, $end_date, false);
$rtn .= "<b>Comments</b>
<blockquote>
Total comments saved: $total <br>
------- <br>
Unique faculty/staff commentors: $unique
</blockquote>
";
// Course search...
$u_student = stats_get_log_count("course_search", "", true, $start_date, $end_date, true);
$um_student = stats_get_log_count("course_search", "", true, $start_date, $end_date, true, true);
$t_student = stats_get_log_count("course_search", "", false, $start_date, $end_date, true);
$tm_student = stats_get_log_count("course_search", "", false, $start_date, $end_date, true, true);
$u_staff = stats_get_log_count("course_search", "", true, $start_date, $end_date, false);
$t_staff = stats_get_log_count("course_search", "", false, $start_date, $end_date, false);
$tm_staff = stats_get_log_count("course_search", "", false, $start_date, $end_date, false, true);
$rtn .= "<b>Course Search</b>
<blockquote>
Unique student users: $u_student <span class='s-mobile'>($um_student mobile)</span><br>
Total student uses: $t_student <span class='s-mobile'>($tm_student mobile)</span><br>
------- <br>
Unique faculty/staff users: $u_staff<br>
Total faculty/staff (and anonymous) uses: $t_staff <span class='s-mobile'>($tm_staff mobile)</span>
</blockquote>
";
// Degree search...
$u_student = stats_get_log_count("blank_degrees", "", true, $start_date, $end_date, true);
$um_student = stats_get_log_count("blank_degrees", "", true, $start_date, $end_date, true, true);
$t_student = stats_get_log_count("blank_degrees", "", false, $start_date, $end_date, true);
$tm_student = stats_get_log_count("blank_degrees", "", false, $start_date, $end_date, true, true);
$u_staff = stats_get_log_count("blank_degrees", "", true, $start_date, $end_date, false);
$t_staff = stats_get_log_count("blank_degrees", "", false, $start_date, $end_date, false);
$tm_staff = stats_get_log_count("blank_degrees", "", false, $start_date, $end_date, false, true);
$rtn .= "<b>Degree Search (blank degrees)</b>
<blockquote>
Unique student users: $u_student <span class='s-mobile'>($um_student mobile)</span><br>
Total student uses: $t_student <span class='s-mobile'>($tm_student mobile)</span><br>
------- <br>
Unique faculty/staff users: $u_staff<br>
Total faculty/staff (and anonymous) uses: $t_staff <span class='s-mobile'>($tm_staff mobile)</span>
</blockquote>
";
// View preferences
$t_student_y = stats_get_log_count("view_by_year", "", false, $start_date, $end_date, true);
$tm_student_y = stats_get_log_count("view_by_year", "", false, $start_date, $end_date, true, true);
$u_student_y = stats_get_log_count("view_by_year", "", true, $start_date, $end_date, true);
$um_student_y = stats_get_log_count("view_by_year", "", true, $start_date, $end_date, true, true);
$t_staff_y = stats_get_log_count("view_by_year", "", false, $start_date, $end_date, false);
$t_student_t = stats_get_log_count("view_by_type", "", false, $start_date, $end_date, true);
$tm_student_t = stats_get_log_count("view_by_type", "", false, $start_date, $end_date, true, true);
$u_student_t = stats_get_log_count("view_by_type", "", true, $start_date, $end_date, true);
$um_student_t = stats_get_log_count("view_by_type", "", true, $start_date, $end_date, true, true);
$t_staff_t = stats_get_log_count("view_by_type", "", false, $start_date, $end_date, false);
$rtn .= "<b>View Preferences</b>
<blockquote>
Unique student view-by-year: $u_student_y <span class='s-mobile'>($um_student_y mobile)</span><br>
Total student view-by-year: $t_student_y <span class='s-mobile'>($tm_student_y mobile)</span><br>
Total faculty/staff view-by-year: $t_staff_y<br>
------- <br>
Unqiue student view-by-type: $u_student_t <span class='s-mobile'>($um_student_t mobile)</span><br>
Total student view-by-type: $t_student_t <span class='s-mobile'>($tm_student_t mobile)</span><br>
Total faculty/staff view-by-type: $t_staff_t<br>
</blockquote>
";
// Substitutions
$t_staff = stats_get_log_count("save_substitution", "", false, $start_date, $end_date, false);
$u_staff = stats_get_log_count("save_substitution", "", true, $start_date, $end_date, false);
$rtn .= "<b>Substitutions</b>
<blockquote>
Unique substitutors: $u_staff<br>
Total substitutions: $t_staff<br>
</blockquote>
";
return $rtn;
}