. */ class pts_module_interface { const module_name = "Generic Module"; const module_version = "1.0.0"; const module_description = "A description of the module."; const module_author = "Module Creator"; public static $module_store_vars = array(); public static function module_info() { } public static function module_setup() { return array(); } // // General Functions // public static function __startup($obj = null) { return; } public static function __shutdown($obj = null) { return; } // // Option Functions // public static function __pre_option_process($obj = null) { // Passed is a string containing the name of the option command about to be run return; } public static function __post_option_process($obj = null) { // Passed is a string containing the name of the option after it has run return; } // // Installation Functions // public static function __pre_install_process($obj = null) { // Passed is an array of the test identifiers for all tests about to be installed return; } public static function __pre_test_install($obj = null) { // Passed as the first argument to this function is the test identifier for the name of the test about to be installed return; } public static function __post_test_install($obj = null) { // Passed as the first argument to this function is the test identifier for the name of the test just installed return; } public static function __post_install_process($obj = null) { // Passed is an array of the test identifiers for all tests that were supposed to be just installed return; } // // Run Functions // public static function __pre_run_process($obj = null) { // Passed is an array of test identifiers for all tests scheduled to run return; } public static function __pre_test_run($obj = null) { // Passed is a read-only copy of the current pts_test_result for the given test return; } public static function __interim_test_run($obj = null) { // Passed is a read-only copy of the current pts_test_result for the given test return; } public static function __post_test_run($obj = null) { // Passed is a read-only copy of the current pts_test_result for the given test return; } public static function __post_run_process($obj = null) { // Passed is an array of test identifiers for all tests that were scheduled to run return; } // // Event-driven Functions // public static function __event_global_upload($obj = null) { // Passed is a string of the URL for the test results uploaded to Phoronix Global return; } } ?>