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.

Differences Between: [Versions 401 and 402] [Versions 401 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