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.

Differences Between: [Versions 311 and 402] [Versions 311 and 403]

Test factory for lib/outputfactories.php.

Copyright: 2014 Damyon Wiese
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 147 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

test_output_factory:: (2 methods):
  __construct()
  get_renderer()

is:: (2 methods):
  get_standard_renderer_factory_search_paths()
  get_theme_overridden_renderer_factory_search_paths()


Class: test_output_factory  - X-Ref

This is renderer factory testing of the classname autoloading.

__construct()   X-Ref
Constructor.


get_renderer(moodle_page $page, $component, $subtype = null, $target = null)   X-Ref
Not used - we want to test the autoloaded class locations - even if there are no classes yet.


Class: is  - X-Ref

get_standard_renderer_factory_search_paths($component, $subtype = null, $target = null)   X-Ref
No description

get_theme_overridden_renderer_factory_search_paths($component, $subtype = null, $target = null)   X-Ref
Return the list of classnames searched for by the get_renderer method of theme_overridden_renderer.

param: string $component name such as 'core', 'mod_forum' or 'qtype_multichoice'.
param: string $subtype optional subtype such as 'news' resulting to 'mod_forum_news'
param: string $target one of rendering target constants
return: string[] of classnames