Function __global->remap_portable_as_urlpath

Definitions

sources/resource_fs.php

  • Convert a portable URL to a real URL.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$portable_data ?mixed No No required parameter N/A N/A Portable details (null: not set)
$ignore_conflicts boolean No No False N/A N/A Whether to ignore conflicts with existing files (=edit op, basically)

Returns

  • The URL (null: not set)
  • Type: ?string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Convert a portable URL to a real URL.
 *
 * @param  ?mixed $portable_data Portable details (null: not set)
 * @param  boolean $ignore_conflicts Whether to ignore conflicts with existing files (=edit op, basically)
 * @return ?string The URL (null: not set)
 */

function remap_portable_as_urlpath($portable_data, bool $ignore_conflicts = false) : ?string