Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Output rendering for the plugin.

Copyright: 2013 David Mudrak <david@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 236 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: tool_installaddon_renderer  - X-Ref

Implements the plugin renderer

set_installer_instance(tool_installaddon_installer $installer)   X-Ref
Sets the tool_installaddon_installer instance being used.

param: tool_installaddon_installer $installer

index_page()   X-Ref
Defines the index page layout

return: string

zip_not_valid_plugin_package_page(moodle_url $continueurl)   X-Ref
Inform the user that the ZIP is not a valid plugin package file.

param: moodle_url $continueurl
return: string

remote_request_invalid_page(moodle_url $continueurl)   X-Ref
Inform the user about invalid remote installation request.

param: moodle_url $continueurl
return: string

remote_request_alreadyinstalled_page(stdClass $data, moodle_url $continueurl)   X-Ref
Inform the user that such plugin is already installed

param: stdClass $data decoded request data
param: moodle_url $continueurl
return: string

remote_request_confirm_page(stdClass $data, moodle_url $continueurl, moodle_url $cancelurl)   X-Ref
Let the user confirm the remote installation request.

param: stdClass $data decoded request data
param: moodle_url $continueurl
param: moodle_url $cancelurl
return: string

remote_request_permcheck_page(stdClass $data, $plugintypepath, moodle_url $continueurl, moodle_url $cancelurl)   X-Ref
Inform the user that the target plugin type location is not writable.

param: stdClass $data decoded request data
param: string $plugintypepath full path to the plugin type location
param: moodle_url $continueurl to repeat the write permission check
param: moodle_url $cancelurl to cancel the installation
return: string

remote_request_non_installable_page(stdClass $data, moodle_url $continueurl)   X-Ref
Inform the user that the requested remote plugin is not installable.

param: stdClass $data decoded request data with ->reason property added
param: moodle_url $continueurl
return: string

index_page_heading()   X-Ref
Renders the index page heading

return: string

index_page_repository()   X-Ref
Renders the widget for browsing the add-on repository

return: string

index_page_upload()   X-Ref
Renders the widget for uploading the add-on ZIP package

return: string