|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
| enum STATS_MODE_DETAILED |
Definition at line 71 of file statslib.php.
| enum STATS_MODE_GENERAL |
Definition at line 70 of file statslib.php.
| enum STATS_MODE_RANKED |
Definition at line 72 of file statslib.php.
Definition at line 42 of file statslib.php.
Definition at line 43 of file statslib.php.
Definition at line 32 of file statslib.php.
Definition at line 33 of file statslib.php.
| enum STATS_REPORT_LOGINS |
THESE CONSTANTS ARE USED FOR THE REPORTING PAGE.
Definition at line 29 of file statslib.php.
Definition at line 44 of file statslib.php.
Definition at line 45 of file statslib.php.
| enum STATS_REPORT_READS |
Definition at line 30 of file statslib.php.
Definition at line 36 of file statslib.php.
Definition at line 37 of file statslib.php.
Definition at line 38 of file statslib.php.
Definition at line 39 of file statslib.php.
| enum STATS_REPORT_WRITES |
Definition at line 31 of file statslib.php.
Definition at line 65 of file statslib.php.
Definition at line 66 of file statslib.php.
Definition at line 54 of file statslib.php.
Definition at line 49 of file statslib.php.
Definition at line 56 of file statslib.php.
Definition at line 50 of file statslib.php.
Definition at line 57 of file statslib.php.
Definition at line 51 of file statslib.php.
Definition at line 58 of file statslib.php.
Definition at line 59 of file statslib.php.
Definition at line 62 of file statslib.php.
Definition at line 63 of file statslib.php.
Definition at line 64 of file statslib.php.
| enum STATS_TIME_LASTWEEK |
Definition at line 48 of file statslib.php.
| enum STATS_TIME_LASTYEAR |
Definition at line 67 of file statslib.php.
| stats_check_uptodate | ( | $ | courseid = 0 | ) |
| stats_clean_old | ( | ) |
Remove old stats data
Definition at line 1000 of file statslib.php.


| stats_compare_times | ( | $ | a, |
| $ | b | ||
| ) |
Definition at line 1432 of file statslib.php.
| stats_cron_daily | ( | $ | maxdays = 1 | ) |
Execute daily statistics gathering
| int | $maxdays | maximum number of days to be processed |
Grab this execution as last one
find out if any logs available for this day
process login info first
now get course total enrolments (roleid==0) - except frontpage
frontapge(==site) enrolments total
Default frontpage role enrolments are all site users (not deleted)
individual user stats (including not-logged-in) in each course, this is slow - reuse this data if possible
how many view/post actions in each course total
how many view actions for each course+role - excluding guests and frontpage
how many view actions from guests only in each course - excluding frontpage normal users may enter course with temporary guest access too
how many view actions for each role on frontpage - excluding guests, not-logged-in and default frontpage role
how many view actions for default frontpage role on frontpage only
how many view actions for guests or not-logged-in on frontpage
Definition at line 102 of file statslib.php.


Execute monthly statistics gathering
process login info first
now enrolments averages
activity read/write averages
user read/write averages
Definition at line 722 of file statslib.php.


Execute weekly statistics gathering
process login info first
now enrolments averages
activity read/write averages
user read/write averages
Definition at line 594 of file statslib.php.


| stats_daily_progress | ( | $ | ident | ) |
Print daily cron progress
| string | $ident |
Definition at line 78 of file statslib.php.


| stats_fix_zeros | ( | $ | stats, |
| $ | timeafter, | ||
| $ | timestr, | ||
| $ | line2 = true, |
||
| $ | line3 = false |
||
| ) |
| stats_get_action_names | ( | $ | str | ) |
| stats_get_base_daily | ( | $ | time = 0 | ) |
Start of day
| int | $time | timestamp |
Definition at line 881 of file statslib.php.


| stats_get_base_monthly | ( | $ | time = 0 | ) |
Start of month
| int | $time | timestamp |
Definition at line 928 of file statslib.php.


| stats_get_base_weekly | ( | $ | time = 0 | ) |
Start of week
| int | $time | timestamp |
Definition at line 903 of file statslib.php.


| stats_get_next_day_start | ( | $ | time | ) |
Start of next day
| int | $time | timestamp |
Definition at line 954 of file statslib.php.


| stats_get_next_month_start | ( | $ | time | ) |
Start of next month
| int | $time | timestamp |
Definition at line 986 of file statslib.php.


| stats_get_next_week_start | ( | $ | time | ) |
Start of next week
| int | $time | timestamp |
Definition at line 970 of file statslib.php.


| stats_get_parameters | ( | $ | time, |
| $ | report, | ||
| $ | courseid, | ||
| $ | mode, | ||
| $ | roleid = 0 |
||
| ) |
Definition at line 1020 of file statslib.php.


Definition at line 1227 of file statslib.php.
| stats_get_report_options | ( | $ | courseid, |
| $ | mode | ||
| ) |
Definition at line 1327 of file statslib.php.


| stats_get_start_from | ( | $ | str | ) |
Return starting date of stats processing
| string | $str | name of table - daily, weekly or monthly |
Definition at line 853 of file statslib.php.

| stats_get_time_options | ( | $ | now, |
| $ | lastweekend, | ||
| $ | lastmonthend, | ||
| $ | earliestday, | ||
| $ | earliestweek, | ||
| $ | earliestmonth | ||
| ) |
Definition at line 1262 of file statslib.php.


Definition at line 1223 of file statslib.php.