Function Meta_tree_builder->put_in_addon_tree

Definitions

sources/themes_meta_tree.php

  • Put in an addon hierarchy under a path.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$path PATH No No required parameter N/A N/A The path
$subdir ID_TEXT No No required parameter N/A N/A The theme subdirectory we're working against
$theme ID_TEXT No No required parameter N/A N/A The theme
$filter_level_b ?string No No Null N/A N/A The second level of filter (null: no filter)
$relationships_mode boolean No No False N/A N/A Whether we have an extra level, the relationships mode
$callback ?mixed No No Null N/A N/A Callback to run on each iteration (null: none)

Preview

Code (PHP)

/**
 * Put in an addon hierarchy under a path.
 *
 * @param  PATH $path The path
 * @param  ID_TEXT $subdir The theme subdirectory we're working against
 * @param  ID_TEXT $theme The theme
 * @param  ?string $filter_level_b The second level of filter (null: no filter)
 * @param  boolean $relationships_mode Whether we have an extra level, the relationships mode
 * @param  ?mixed $callback Callback to run on each iteration (null: none)
 */

protected function put_in_addon_tree(string $path, string $subdir, string $theme, ?string $filter_level_b = null, bool $relationships_mode = false, $callback = null)