Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is 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