65 $path = parse_url($url, PHP_URL_PATH);
68 if (!isset($route_info[
'_route'])) {
73 $route->setMatchedParameters($route_info);
76 }
catch (\Symfony\Component\Routing\Exception\ExceptionInterface $e) {
100 return isset($route) ? $route->getName() :
'';
112 return _elgg_services()->routes->get($name) instanceof \Elgg\Router\Route;
169 return implode(
':', array_filter($route_parts));
173 [$entity->type, $entity->subtype],
174 [$entity->type, null],
177 foreach ($pairs as $pair) {
178 $route_name = $make_route_name($pair[0], $pair[1]);
202 if ($add_csrf_tokens) {
286 $response = new \Elgg\Http\DownloadResponse($content);
elgg_generate_action_url(string $action, array $query=[], bool $add_csrf_tokens=true)
Generate an action URL.
elgg_get_route(string $name)
Get a registered route by it's name.
$params
Saves global plugin settings.
elgg_route_exists(string $name)
Check if a route is registered.
elgg_register_route(string $name, array $params=[])
Elgg page handler functions.
elgg_get_current_route_name()
Get the route name for the current request.
if(!$user||!$user->canDelete()) $name
elgg_ok_response($content= '', string|array $message= '', string $forward_url=null, int $status_code=ELGG_HTTP_OK)
Prepares a successful response to be returned by a page or an action handler.
elgg_register_success_message(string|array $options)
Registers a success system message.
elgg_redirect_response(string $forward_url=REFERRER, int $status_code=ELGG_HTTP_FOUND, bool $secure_forward_url=true)
Prepare a silent redirect response to be returned by a page or an action handler. ...
elgg_add_action_tokens_to_url(string $url, bool $html_encode=false)
Adds action tokens to URL.
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special the source code distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place counts as distribution of the source even though third parties are not compelled to copy the source along with the object code You may not or distribute the Program except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Program is void
elgg_unregister_route(string $name)
Unregister a route by its name.
elgg_download_response(string $content, string $filename= '', bool $inline=false, array $headers=[])
Prepare a download response.
elgg_error_response(string|array $message= '', string $forward_url=REFERRER, int $status_code=ELGG_HTTP_BAD_REQUEST)
Prepare an error response to be returned by a page or an action handler.
const REFERRER
Used in calls to forward() to specify the browser should be redirected to the referring page...
elgg_generate_entity_url(ElggEntity $entity, string $resource= 'view', string $subresource=null, array $parameters=[])
Generate entity URL from a named route.
if(!$entity->delete(true, true)) $forward_url
elgg_get_current_url()
Returns the current page's complete URL.
elgg_http_add_url_query_elements(string $url, array $elements)
Sets elements in a URL's query string.
elgg_get_route_for_url(string $url)
Find a registered route based on an url/path.
elgg_register_error_message(string|array $options)
Registers a error system message.
elgg_get_current_route()
Get the route for the current request.
const ELGG_HTTP_BAD_REQUEST
$content
Set robots.txt action.
foreach($plugin_guids as $guid) if(empty($deactivated_plugins)) $url
elgg_generate_url(string $name, array $parameters=[])
Generate a URL for named route.
_elgg_services()
Get the global service provider.
elgg_normalize_url(string $url)