Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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.
 
static url_rewrite (\moodle_url $url)
 Rewrite moodle_urls into another form.
 

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: