Render a page containing a simple form which reposts to self via JS.
More...
|
| __construct (string $url, array $post) |
| Constructor.
|
|
| export_for_template (renderer_base $output) |
| Export this data so it can be used as the context for a mustache template.
|
|
|
array | $params |
| POST params.
|
|
string string | $url |
| URL to repost to.
|
|
Render a page containing a simple form which reposts to self via JS.
The purpose of this form is to resend a cross-site request to self, which allows the browsers to include the Moodle session cookie alongside the original POST data, allowing LTI flows to function despite browsers blocking cross-site cookies.
- Copyright
- 2021 Cengage
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
mod_lti\output\repost_crosssite_page::__construct |
( |
string | $url, |
|
|
array | $post ) |
Constructor.
- Parameters
-
string | $url | moodle URL to repost to |
array | $post | the POST params to be re-posted |
◆ export_for_template()
mod_lti\output\repost_crosssite_page::export_for_template |
( |
renderer_base | $output | ) |
|
Export this data so it can be used as the context for a mustache template.
- Parameters
-
renderer_base | $output | The renderer |
- Return values
-
stdClass | Data to be used by the template |
The documentation for this class was generated from the following file:
- mod/lti/classes/output/repost_crosssite_page.php