Function __global->current_share_user

Definitions

sources/shared_installs.php

  • Find the user-ID of the current shared-site install from the accessing URL. This should only ever be called when it is known a shared-site is in operation.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Returns

  • The shared-site install (null: not on one)
  • Type: ?ID_TEXT
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find the user-ID of the current shared-site install from the accessing URL. This should only ever be called when it is known a shared-site is in operation.
 *
 * @return ?ID_TEXT The shared-site install (null: not on one)
 */

function current_share_user() : ?string