url_support extends facade
Facade for local_middag\framework\support\moodle\url_support.
Tags
Table of Contents
Methods
- admin_settings() : moodle_url
- course() : moodle_url
- dashboard() : moodle_url
- get() : moodle_url
- get_facade_accessor() : string
- Return the service accessor key for this facade.
- grade_report() : moodle_url
- home() : moodle_url
- image_url() : moodle_url
- is_external() : bool
- module() : moodle_url
- pluginfile() : moodle_url
- redirect() : void
- to_absolute() : string
- user_profile() : moodle_url
Methods
admin_settings()
public
static admin_settings(string $section[, array<string|int, mixed> $params = = '[]' ][, string|null $anchor = = 'null' ]) : moodle_url
Parameters
- $section : string
- $params : array<string|int, mixed> = = '[]'
- $anchor : string|null = = 'null'
Return values
moodle_urlcourse()
public
static course(int $courseid[, array<string|int, mixed> $params = = '[]' ][, string|null $anchor = = 'null' ]) : moodle_url
Parameters
- $courseid : int
- $params : array<string|int, mixed> = = '[]'
- $anchor : string|null = = 'null'
Return values
moodle_urldashboard()
public
static dashboard([array<string|int, mixed> $params = = '[]' ][, string|null $anchor = = 'null' ]) : moodle_url
Parameters
- $params : array<string|int, mixed> = = '[]'
- $anchor : string|null = = 'null'
Return values
moodle_urlget()
public
static get(moodle_url|string $url[, array<string|int, mixed>|null $params = = 'null' ][, string|null $anchor = = 'null' ][, int $strictness = = 'IGNORE_MISSING' ]) : moodle_url
Parameters
- $url : moodle_url|string
- $params : array<string|int, mixed>|null = = 'null'
- $anchor : string|null = = 'null'
- $strictness : int = = 'IGNORE_MISSING'
Return values
moodle_urlget_facade_accessor()
Return the service accessor key for this facade.
public
static get_facade_accessor() : string
Return values
stringgrade_report()
public
static grade_report(int $courseid[, string $report = = '\'user\'' ][, array<string|int, mixed> $params = = '[]' ][, string|null $anchor = = 'null' ]) : moodle_url
Parameters
- $courseid : int
- $report : string = = '\'user\''
- $params : array<string|int, mixed> = = '[]'
- $anchor : string|null = = 'null'
Return values
moodle_urlhome()
public
static home([array<string|int, mixed> $params = = '[]' ][, string|null $anchor = = 'null' ]) : moodle_url
Parameters
- $params : array<string|int, mixed> = = '[]'
- $anchor : string|null = = 'null'
Return values
moodle_urlimage_url()
public
static image_url(string $imagename[, string $component = = '\\local_middag\\framework\\support\\middag_helper::COMPONENT_NAME' ]) : moodle_url
Parameters
- $imagename : string
- $component : string = = '\\local_middag\\framework\\support\\middag_helper::COMPONENT_NAME'
Return values
moodle_urlis_external()
public
static is_external(string $url) : bool
Parameters
- $url : string
Return values
boolmodule()
public
static module(int $cmid[, array<string|int, mixed> $params = = '[]' ][, string|null $anchor = = 'null' ]) : moodle_url
Parameters
- $cmid : int
- $params : array<string|int, mixed> = = '[]'
- $anchor : string|null = = 'null'
Return values
moodle_urlpluginfile()
public
static pluginfile(int $contextid, string $component, string $filearea, int $itemid, string $filepath, string $filename[, bool $forcedownload = = 'false' ][, string|null $preview = = 'null' ]) : moodle_url
Parameters
- $contextid : int
- $component : string
- $filearea : string
- $itemid : int
- $filepath : string
- $filename : string
- $forcedownload : bool = = 'false'
- $preview : string|null = = 'null'
Return values
moodle_urlredirect()
public
static redirect(moodle_url|string $url[, string $message = = '\'\'' ][, int $delay = = '0' ][, string $messagetype = = '\'notifysuccess\'' ]) : void
Parameters
- $url : moodle_url|string
- $message : string = = '\'\''
- $delay : int = = '0'
- $messagetype : string = = '\'notifysuccess\''
to_absolute()
public
static to_absolute(string $relativeurl) : string
Parameters
- $relativeurl : string
Return values
stringuser_profile()
public
static user_profile(int $userid[, int|null $courseid = = 'null' ][, array<string|int, mixed> $params = = '[]' ][, string|null $anchor = = 'null' ]) : moodle_url
Parameters
- $userid : int
- $courseid : int|null = = 'null'
- $params : array<string|int, mixed> = = '[]'
- $anchor : string|null = = 'null'