Function __global->_create_media_template_parameters

Definitions

sources/media_renderer.php

  • Turn standardised media parameters into standardised media template parameters.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: array

Parameters

Name Type Default Set Range Description
$url mixed required parameter N/A N/A The URL
$attributes array required parameter N/A N/A Attributes (Any combination of: thumb_url, width, height, length, filename, mime_type, description, filesize, framed, wysiwyg_editable, num_downloads, click_url, thumb)
$as_admin boolean False N/A N/A Whether there are admin privileges, to render dangerous media types
$source_member ?MEMBER Null N/A N/A Member to run as (null: current member)
$prefer_natural_size boolean False N/A N/A Let the media size itself rather than detecting a size
$url_direct_filesystem ?URLPATH Null N/A N/A Direct URL (not via a script) (null: just use the normal URL)

Return

  • Template-ready parameters
  • Type: array
  • Set: N/A
  • Range: N/A