Function __global->_load_comcode_page_cache_off

Definitions

sources/site2.php

  • Load Comcode page from 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
$string PATH No No required parameter N/A N/A The relative (to the software's base directory) path to the page (e.g. pages/comcode/EN/example.txt)
$zone ID_TEXT No No required parameter N/A N/A The zone the page is being loaded from
$codename ID_TEXT No No required parameter N/A N/A The codename of the page
$file_base PATH No No required parameter N/A N/A The file base to load from
$new_comcode_page_row array No No required parameter N/A N/A New row for database, used if necessary (holds submitter etc)
$being_included boolean No No False N/A N/A Whether the page is being included from another

Returns

  • A tuple: The page HTML (as Tempcode), New Comcode page row, Title, Raw Comcode
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Load Comcode page from disk.
 *
 * @param  PATH $string The relative (to the software's base directory) path to the page (e.g. pages/comcode/EN/example.txt)
 * @param  ID_TEXT $zone The zone the page is being loaded from
 * @param  ID_TEXT $codename The codename of the page
 * @param  PATH $file_base The file base to load from
 * @param  array $new_comcode_page_row New row for database, used if necessary (holds submitter etc)
 * @param  boolean $being_included Whether the page is being included from another
 * @return array A tuple: The page HTML (as Tempcode), New Comcode page row, Title, Raw Comcode
 */

function _load_comcode_page_cache_off(string $string, string $zone, string $codename, string $file_base, array $new_comcode_page_row, bool $being_included = false) : array