Function __global->__param

Definitions

sources/global2.php

  • Helper function to load up a GET/POST parameter.If the requested POST parameter is an array, it will be returned as a comma-delimited string.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: string

Parameters

Name Type Default Set Range Description
$array array required parameter N/A N/A The array we're extracting parameters from
$name string required parameter N/A N/A The name of the parameter
$default ?~mixed required parameter N/A N/A The default value to give the parameter if the parameter value is not defined (null: allow missing parameter) (false: give error on missing parameter)
$integer boolean False N/A N/A Whether the parameter has to be an integer
$posted ?boolean False N/A N/A Whether the parameter is a POST parameter (null: undetermined)

Return

  • The value of the parameter (null: missing)
  • Type: ?string
  • Set: N/A
  • Range: N/A

sources/minikernel.php

  • Helper function to load up a GET/POST parameter.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: string

Parameters

Name Type Default Set Range Description
$array array required parameter N/A N/A The array we're extracting parameters from
$name ID_TEXT required parameter N/A N/A The name of the parameter
$default ?~mixed required parameter N/A N/A The default value to use for the parameter (null: no default) (false: give error on missing parameter)
$must_integer boolean False N/A N/A Whether the parameter has to be an integer
$is_post boolean False N/A N/A Whether the parameter is a POST parameter

Return

  • The value of the parameter (null: not there, and default was null)
  • Type: ?string
  • Set: N/A
  • Range: N/A