Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
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: