Class Module_tester

Description

Module page class.

Located in /site/pages/modules/tester.php (line 35)


	
			
Method Summary
tempcode ad ()
tempcode add_test ()
tempcode ed ()
?array get_entry_points ()
tempcode get_section_list ([?AUTO_LINK $it = NULL], [boolean $unassigned = false])
tempcode get_tester_list (?MEMBER $it)
tempcode get_test_form_fields (string $stub, [SHORT_TEXT $test = ''], [?MEMBER $assigned_to = NULL], [BINARY $enabled = 1], [string $inherit_from = ''])
tempcode get_test_section_form_fields ([SHORT_TEXT $section = ''], [LONG_TEXT $notes = ''], [?MEMBER $assigned_to = NULL], [BINARY $inheritable = 0])
tempcode go ()
?array info ()
void install ([?integer $upgrade_from = NULL], [?integer $upgrade_from_hack = NULL])
tempcode report ()
tempcode run ()
tempcode stats ()
void uninstall ()
tempcode _ad ()
void _add_new_tests (AUTO_LINK $section_id)
tempcode _add_test ()
tempcode _ed ()
tempcode _go ()
tempcode __ed ()
Methods
ad (line 482)

Inteface to add a test section.

  • return: The result of execution.
tempcode ad ()
add_test (line 437)

Inteface to add a test.

  • return: The result of execution.
tempcode add_test ()
ed (line 563)

Choose a test section to edit.

  • return: The result of execution.
tempcode ed ()
get_entry_points (line 110)

Standard modular entry-point finder function.

  • return: A map of entry points (type-code=>language-code) (NULL: disabled).
?array get_entry_points ()
get_section_list (line 331)

Get a list to choose a section.

  • return: The list
tempcode get_section_list ([?AUTO_LINK $it = NULL], [boolean $unassigned = false])
  • ?AUTO_LINK $it: The section to select by default (NULL: no specific default)
  • boolean $unassigned: Whether to only select inheritable sections
get_tester_list (line 362)

Get a list to choose a tester.

  • return: The list
tempcode get_tester_list (?MEMBER $it)
  • ?MEMBER $it: The member to select by default (NULL: Select N/A)
get_test_form_fields (line 392)

Get tempcode for a test adding/editing form.

  • return: The tempcode for the visible fields
tempcode get_test_form_fields (string $stub, [SHORT_TEXT $test = ''], [?MEMBER $assigned_to = NULL], [BINARY $enabled = 1], [string $inherit_from = ''])
  • string $stub: A short stub to prefix the field name
  • SHORT_TEXT $test: The text of the test
  • ?MEMBER $assigned_to: The member the test is assigned to (NULL: test section member)
  • BINARY $enabled: Whether the test is enabled
  • string $inherit_from: The section this test inherits from (blank: none)
get_test_section_form_fields (line 417)

Get tempcode for a test section adding/editing form.

  • return: The tempcode for the visible fields
tempcode get_test_section_form_fields ([SHORT_TEXT $section = ''], [LONG_TEXT $notes = ''], [?MEMBER $assigned_to = NULL], [BINARY $inheritable = 0])
  • SHORT_TEXT $section: The name of the section
  • LONG_TEXT $notes: Notes for the section
  • ?MEMBER $assigned_to: The member the tests are assigned to (NULL: not a normal section, one that gets inherited into tests)
  • BINARY $inheritable: Whether this test section is intended to be inherited, not used by itself
go (line 184)

Run through tests.

  • return: The result of execution.
tempcode go ()
info (line 43)

Standard modular info function.

  • return: Map of module info (NULL: module is disabled).
?array info ()
install (line 77)

Standard modular install function.

void install ([?integer $upgrade_from = NULL], [?integer $upgrade_from_hack = NULL])
  • ?integer $upgrade_from: What version we're upgrading from (NULL: new install)
  • ?integer $upgrade_from_hack: What hack version we're upgrading from (NULL: new-install/not-upgrading-from-a-hacked-version)
report (line 271)

A bug report for a test.

  • return: The result of execution.
tempcode report ()
run (line 120)

Standard modular run function.

  • return: The result of execution.
tempcode run ()
stats (line 149)

Show statistics on test progress.

  • return: The result of execution.
tempcode stats ()
uninstall (line 58)

Standard modular uninstall function.

void uninstall ()
_ad (line 535)

Actualiser to add a test section.

  • return: The result of execution.
tempcode _ad ()
_add_new_tests (line 503)

Add in any new tests added in the form.

void _add_new_tests (AUTO_LINK $section_id)
  • AUTO_LINK $section_id: The section to put the tests in.
_add_test (line 463)

Actualiser to add a test.

  • return: The result of execution.
tempcode _add_test ()
_ed (line 590)

Interface to edit a test section.

  • return: The result of execution.
tempcode _ed ()
_go (line 304)

Save test run through results.

  • return: The result of execution.
tempcode _go ()
__ed (line 634)

Actualiser to edit a test section.

  • return: The result of execution.
tempcode __ed ()

Documentation generated on Sun, 02 Jan 2011 23:26:29 +0000 by phpDocumentor 1.4.3