Function __global->results_entry

Definitions

sources/templates_results_table.php

  • Get the Tempcode for a results entry (a row). You would gather together the outputs of several of these functions, then put them in as the $fields in a results_table function call.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$values array No No required parameter N/A N/A The array of values that make up this entry (of string or Tempcode, or mixture)
$auto_escape boolean No No required parameter N/A N/A Whether to automatically escape each plain-text entry so that it cannot contain HTML (ignored for Tempcode values)
$tpl_set ?string No No Null N/A N/A The template set to use (null: default)
$guid string No No 9e340dd14173c7320b57243d607718ab N/A N/A GUID to pass to template
$td_class string No No Blank (empty string) N/A N/A Additional classes to assign to the row other than zebra (blank: none)

Returns

  • The generated entry
  • Type: Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the Tempcode for a results entry (a row). You would gather together the outputs of several of these functions, then put them in as the $fields in a results_table function call.
 *
 * @param  array $values The array of values that make up this entry (of string or Tempcode, or mixture)
 * @param  boolean $auto_escape Whether to automatically escape each plain-text entry so that it cannot contain HTML (ignored for Tempcode values)
 * @param  ?string $tpl_set The template set to use (null: default)
 * @param  string $guid GUID to pass to template
 * @param  string $td_class Additional classes to assign to the row other than zebra (blank: none)
 * @return Tempcode The generated entry
 */

function results_entry(array $values, bool $auto_escape, ?string $tpl_set = null, string $guid = '9e340dd14173c7320b57243d607718ab', string $td_class = '') : object