middag_helper extends facade
Facade for local_middag\framework\support\middag_helper.
Tags
Table of Contents
Methods
- get() : object
- get_component_name() : string
- get_docs_url() : string
- get_facade_accessor() : string
- Return the service accessor key for this facade.
- get_middagplugins_overview_url() : string
- get_site_url() : string
- get_support_url() : string
- handle() : void
- init() : void
- is_development() : bool
- is_production() : bool
- is_testing() : bool
- register_route() : void
- register_routes_from_annotations() : void
- routing() : router_interface
- shutdown() : void
- url_generator() : moodle_url
- webhook_url_generator() : moodle_url
Methods
get()
public
static get(string $id) : object
Parameters
- $id : string
Return values
objectget_component_name()
public
static get_component_name() : string
Return values
stringget_docs_url()
public
static get_docs_url() : string
Return values
stringget_facade_accessor()
Return the service accessor key for this facade.
public
static get_facade_accessor() : string
Return values
stringget_middagplugins_overview_url()
public
static get_middagplugins_overview_url() : string
Return values
stringget_site_url()
public
static get_site_url() : string
Return values
stringget_support_url()
public
static get_support_url() : string
Return values
stringhandle()
public
static handle() : void
init()
public
static init() : void
is_development()
public
static is_development() : bool
Return values
boolis_production()
public
static is_production() : bool
Return values
boolis_testing()
public
static is_testing() : bool
Return values
boolregister_route()
public
static register_route(string $name, string $path, string $controller_class, string $method[, array<string|int, mixed> $requirements = = '[]' ]) : void
Parameters
- $name : string
- $path : string
- $controller_class : string
- $method : string
- $requirements : array<string|int, mixed> = = '[]'
register_routes_from_annotations()
public
static register_routes_from_annotations(string $class_name) : void
Parameters
- $class_name : string
routing()
public
static routing() : router_interface
Return values
router_interfaceshutdown()
public
static shutdown() : void
url_generator()
public
static url_generator(string $route[, array<string|int, mixed> $parameters = = '[]' ][, int $reference_type = = '\\Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface::ABSOLUTE_PATH' ]) : moodle_url
Parameters
- $route : string
- $parameters : array<string|int, mixed> = = '[]'
- $reference_type : int = = '\\Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface::ABSOLUTE_PATH'
Return values
moodle_urlwebhook_url_generator()
public
static webhook_url_generator(string $route[, array<string|int, mixed> $parameters = = '[]' ][, int $reference_type = = '\\Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface::ABSOLUTE_PATH' ]) : moodle_url
Parameters
- $route : string
- $parameters : array<string|int, mixed> = = '[]'
- $reference_type : int = = '\\Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface::ABSOLUTE_PATH'