Function __global->get_self_url

Definitions

sources/urls.php

  • Get a well formed URL equivalent to the current URL.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: N/A

Parameters

Name Type Default Set Range Description
$evaluate boolean False N/A N/A Whether to evaluate the URL (so as we don't return Tempcode)
$root_if_posted boolean False N/A N/A Whether to direct to the default page if there was a POST request leading to where we are now (i.e. to avoid missing post fields when we go to this URL)
$extra_params array [] N/A N/A A map of extra parameters for the URL
$posted_too boolean False N/A N/A Whether to also keep POSTed data, in the GET request (useful if either_param_string is used to get the data instead of post_param_string - of course the POST data must be of the not--persistent-state-changing variety)
$avoid_remap boolean False N/A N/A Whether to avoid URL Schemes (sometimes essential so we can assume the standard URL parameter addition scheme in templates)

Return

  • The URL (string or Tempcode)
  • Type: mixed
  • Set: N/A
  • Range: N/A