Function __global->extract_module_functions_page

Definitions

sources/zones2.php

  • Extract code to execute the requested functions with the requested parameters from the module requested.If it's not a module, returns an empty array.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$zone ID_TEXT No No required parameter N/A N/A The zone it is in
$page ID_TEXT No No required parameter N/A N/A The page name
$functions array No No required parameter N/A N/A Array of functions to be executing
$params array No No [] N/A N/A A list of parameters to pass to our functions

Returns

  • A list of pieces of code to do the equivalent of executing the requested functions with the requested parameters
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Extract code to execute the requested functions with the requested parameters from the module requested.If it's not a module, returns an empty array.
 *
 * @param  ID_TEXT $zone The zone it is in
 * @param  ID_TEXT $page The page name
 * @param  array $functions Array of functions to be executing
 * @param  array $params A list of parameters to pass to our functions
 * @return array A list of pieces of code to do the equivalent of executing the requested functions with the requested parameters
 */

function extract_module_functions_page(string $zone, string $page, array $functions, array $params = []) : array