Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]

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: 148 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