Function __global->_get_template_files_list

Definitions

sources/themes2.php

  • Get all the template files / revisions for a template file, in a certain directory.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$base_dir PATH No No required parameter N/A N/A The path to search relative to
$subdir PATH No No required parameter N/A N/A The subdirectory to search
$suffix string No No required parameter .tpl .js .xml .txt .css N/A File type suffix of template file (e.g. .tpl)

Returns

  • A map of the files (file=>path)
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get all the template files / revisions for a template file, in a certain directory.
 *
 * @param  PATH $base_dir The path to search relative to
 * @param  PATH $subdir The subdirectory to search
 * @param  string $suffix File type suffix of template file (e.g. .tpl)
 * @set .tpl .js .xml .txt .css
 * @return array A map of the files (file=>path)
 */

function _get_template_files_list(string $base_dir, string $subdir, string $suffix) : array