DB2 PHP Generator online Help
Prev | Return to chapter overview | Next |
GetApplication
Returns an instance of the Application class. Actually it is implemented via the Singleton pattern, so the same instance always will be returned.
Signature:
function GetApplication()
Example:
To check if the parameter custom_var is available, use the following code:
if (GetApplication()->IsGETValueSet('custom_var'))
// found
$params['custom_var'] = GetApplication()->GetGETValue('custom_var');
else
// not found. Assign a default value.
$params['custom_var'] = '5 (default)';
Prev | Return to chapter overview | Next |