Function __global->span

Definitions

sources/templates.php

  • Get the Tempcode for a span.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$tempcode Tempcode No No required parameter N/A N/A The Tempcode to put into a span, provided in HTML format (string or Tempcode)
$guid string No No Blank (empty string) N/A N/A GUID for call
$class ?string No No Null N/A N/A CSS classname (null: none)

Returns

  • The generated span with contents
  • Type: Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the Tempcode for a span.
 *
 * @param  Tempcode $tempcode The Tempcode to put into a span, provided in HTML format (string or Tempcode)
 * @param  string $guid GUID for call
 * @param  ?string $class CSS classname (null: none)
 * @return Tempcode The generated span with contents
 */

function span(object $tempcode, string $guid = '', ?string $class = null) : object