Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.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