Function Block_side_galleries->inside

Definitions

sources/blocks/side_galleries.php

  • Show a group of subgalleries for use in a compact tree structure.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$zone ID_TEXT No No required parameter N/A N/A The zone our gallery module is in
$galleries array No No required parameter N/A N/A A list of gallery rows
$tpl ID_TEXT No No required parameter N/A N/A The template to use to show each subgallery
$show_empty boolean No No required parameter N/A N/A Whether to show empty galleries

Returns

  • The shown galleries
  • Type: Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Show a group of subgalleries for use in a compact tree structure.
 *
 * @param  ID_TEXT $zone The zone our gallery module is in
 * @param  array $galleries A list of gallery rows
 * @param  ID_TEXT $tpl The template to use to show each subgallery
 * @param  boolean $show_empty Whether to show empty galleries
 * @return Tempcode The shown galleries
 */

protected function inside(string $zone, array $galleries, string $tpl, bool $show_empty) : object