Function __global->find_comcode_page

Definitions

sources/zones.php

  • Find the path to a Comcode page on disk.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$lang LANGUAGE_NAME No No required parameter N/A N/A The language most preferable
$file ID_TEXT No No required parameter N/A N/A The page name
$zone ID_TEXT No No required parameter N/A N/A The zone

Returns

  • A triple: The file base, The path (blank: not found), Combined path (blank: not found)
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find the path to a Comcode page on disk.
 *
 * @param  LANGUAGE_NAME $lang The language most preferable
 * @param  ID_TEXT $file The page name
 * @param  ID_TEXT $zone The zone
 * @return array A triple: The file base, The path (blank: not found), Combined path (blank: not found)
 */

function find_comcode_page(string $lang, string $file, string $zone) : array