Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Static Public Member Functions | List of all members
core\output\url_rewriter Interface Reference

URL rewriter interface. More...

Static Public Member Functions

static html_head_setup ()
 Gives a url rewriting plugin a chance to rewrite the current page url avoiding redirects and improving performance. More...
 
static url_rewrite (\moodle_url $url)
 Rewrite moodle_urls into another form. More...
 

Detailed Description

URL rewriter interface.

Author
Brendan Heywood brend.nosp@m.an@c.nosp@m.ataly.nosp@m.st-a.nosp@m.u.net
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ html_head_setup()

static core\output\url_rewriter::html_head_setup ( )
static

Gives a url rewriting plugin a chance to rewrite the current page url avoiding redirects and improving performance.

Return values
void

◆ url_rewrite()

static core\output\url_rewriter::url_rewrite ( \moodle_url  $url)
static

Rewrite moodle_urls into another form.

Parameters
moodle_url$urla url to potentially rewrite
Return values
moodle_urlReturns a new, or the original, moodle_url;

The documentation for this interface was generated from the following file: