Function __global->create_selection_list_theme_images

Definitions

sources/themes2.php

  • Get Tempcode for a dropdown to choose a theme from the themes present.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$it ?ID_TEXT No No Null N/A N/A The currently selected image ID (null: none selected)
$filter ?string No No Null N/A N/A An SQL where clause (including the WHERE), that filters the query somehow (null: none)
$do_id boolean No No False N/A N/A Whether to show IDs as the list entry captions, rather than URLs
$include_all boolean No No False N/A N/A Whether to include images not yet used (i.e not in theme_images map yet)
$under string No No Blank (empty string) N/A N/A Only include images under this path. Including a trailing slash unless you specifically want to filter allowing filename stubs as well as URLs (blank: no limitation)

Returns

  • Tempcode for a list selection of theme images
  • Type: Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get Tempcode for a dropdown to choose a theme from the themes present.
 *
 * @param  ?ID_TEXT $it The currently selected image ID (null: none selected)
 * @param  ?string $filter An SQL where clause (including the WHERE), that filters the query somehow (null: none)
 * @param  boolean $do_id Whether to show IDs as the list entry captions, rather than URLs
 * @param  boolean $include_all Whether to include images not yet used (i.e not in theme_images map yet)
 * @param  string $under Only include images under this path. Including a trailing slash unless you specifically want to filter allowing filename stubs as well as URLs (blank: no limitation)
 * @return Tempcode Tempcode for a list selection of theme images
 */

function create_selection_list_theme_images(?string $it = null, ?string $filter = null, bool $do_id = false, bool $include_all = false, string $under = '') : object