/plugins/plugin-cron-stats.php

Description

ShrimpTest Cron stats plugin

This plugin schedules the automatic, periodic computation of experiment stats.

Constants
SHRIMPTEST_CRON_INTERVALS = 'shrimptest_plugin_cron_intervals' (line 15)

string option key for the cron interval preference

Functions
shrimptest_plugin_cron_do_stats (line 86)

Compute the stats when triggered.

Registered against the shrimptest_calculate_stats action.

void shrimptest_plugin_cron_do_stats (array $args)
  • array $args
shrimptest_plugin_cron_filter_schedules (line 69)

Filter the cron intervals, using the option to implement our custom time interval

array shrimptest_plugin_cron_filter_schedules (array $schedules)
  • array $schedules
shrimptest_plugin_cron_setup (line 31)

Set up a cron process for periodically computing stats

Requests the action shrimptest_calculate_stats to be triggered periodically.

void shrimptest_plugin_cron_setup (int $experiment_id, string $status)
  • int $experiment_id
  • string $status

Documentation generated on Sat, 04 Sep 2010 23:40:58 -0400 by phpDocumentor 1.4.3