Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Test static target.

Copyright: 2017 David MonllaĆ³ {@link http://www.davidmonllao.com}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 82 lines (3 kb)
Included or required: 2 times
Referenced: 0 times
Includes or requires: 1 file
 analytics/tests/fixtures/test_target_shortname.php

Defines 1 class

test_static_target_shortname:: (4 methods):
  get_name()
  based_on_assumptions()
  can_use_timesplitting()
  get_analyser_class()


Class: test_static_target_shortname  - X-Ref

Test static target.

Testing target extension to make it static and to use a different analyser
just to try a different one. Method calculate_sample is exactly the same.

get_name()   X-Ref
Returns a lang_string object representing the name for the indicator.

Used as column identificator.

If there is a corresponding '_help' string this will be shown as well.

return: \lang_string

based_on_assumptions()   X-Ref
based_on_assumptions

return: bool

can_use_timesplitting(\core_analytics\local\time_splitting\base $timesplitting)   X-Ref
Everything yep, this is just for testing.

param: \core_analytics\local\time_splitting\base $timesplitting
return: bool

get_analyser_class()   X-Ref
Different analyser just to test a different one.

return: string