[ Index ]

PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008]

title

Body

[close]

/lib/ -> statslib.php (summary)

(no description)

File Size: 1733 lines (69 kb)
Included or required:0 times
Referenced: 6 times
Includes or requires: 0 files

Defines 26 functions

  stats_daily_progress()
  stats_cron_daily()
  stats_cron_weekly()
  stats_cron_monthly()
  stats_get_enrolled_sql()
  stats_get_start_from()
  stats_get_base_daily()
  stats_get_base_weekly()
  stats_get_base_monthly()
  stats_get_next_day_start()
  stats_get_next_week_start()
  stats_get_next_month_start()
  stats_clean_old()
  stats_get_parameters()
  stats_get_view_actions()
  stats_get_post_actions()
  stats_get_action_names()
  stats_get_time_options()
  stats_get_report_options()
  stats_fix_zeros()
  stats_compare_times()
  stats_check_uptodate()
  stats_upgrade_totals()
  stats_upgrade_for_roles_wrapper()
  stats_upgrade_user_table_for_roles()
  stats_upgrade_table_for_roles()

Functions
Functions that are not part of a class:

stats_daily_progress($ident)   X-Ref
Print daily cron progress

param: string $ident

stats_cron_daily($maxdays=1)   X-Ref
Execute daily statistics gathering

param: int $maxdays maximum number of days to be processed
return: boolean success

stats_cron_weekly()   X-Ref
Execute weekly statistics gathering

return: boolean success

stats_cron_monthly()   X-Ref
Execute monthly statistics gathering

return: boolean success

stats_get_enrolled_sql($limit, $includedoanything)   X-Ref
Returns simplified enrolment sql join data

param: int $limit number of max parent course categories
param: bool $includedoanything include also admins
return: array ra join and where string

stats_get_start_from($str)   X-Ref
Return starting date of stats processing

param: string $str name of table - daily, weekly or monthly
return: int timestamp

stats_get_base_daily($time=0)   X-Ref
Start of day

param: int $time timestamp
return: start of day

stats_get_base_weekly($time=0)   X-Ref
Start of week

param: int $time timestamp
return: start of week

stats_get_base_monthly($time=0)   X-Ref
Start of month

param: int $time timestamp
return: start of month

stats_get_next_day_start($time)   X-Ref
Start of next day

param: int $time timestamp
return: start of next day

stats_get_next_week_start($time)   X-Ref
Start of next week

param: int $time timestamp
return: start of next week

stats_get_next_month_start($time)   X-Ref
Start of next month

param: int $time timestamp
return: start of next month

stats_clean_old()   X-Ref
Remove old stats data


stats_get_parameters($time,$report,$courseid,$mode,$roleid=0)   X-Ref
No description

stats_get_view_actions()   X-Ref
No description

stats_get_post_actions()   X-Ref
No description

stats_get_action_names($str)   X-Ref
No description

stats_get_time_options($now,$lastweekend,$lastmonthend,$earliestday,$earliestweek,$earliestmonth)   X-Ref
No description

stats_get_report_options($courseid,$mode)   X-Ref
No description

stats_fix_zeros($stats,$timeafter,$timestr,$line2=true,$line3=false)   X-Ref
No description

stats_compare_times($a,$b)   X-Ref
No description

stats_check_uptodate($courseid=0)   X-Ref
No description

stats_upgrade_totals()   X-Ref
Calculate missing course totals in stats


stats_upgrade_for_roles_wrapper()   X-Ref
No description

stats_upgrade_user_table_for_roles($period)   X-Ref
Upgrades a prefix_stats_user_* table for the new role based permission
system.

param: string $period  daily, weekly or monthly: the stat period to upgrade
return: boolean @todo maybe something else (error message) depending on

stats_upgrade_table_for_roles($period)   X-Ref
Upgrades a prefix_stats_* table for the new role based permission system.

param: string $period  daily, weekly or monthly: the stat period to upgrade
return: boolean        @todo depends on how this will be called



Generated: Wed Jan 14 11:33:29 2009 Cross-referenced by PHPXref 0.7