Page: Program_Root/form-handler.php

Constant Summary
CONSTANT NAMECONSTANT VALUEDESCRIPTION


Function Summary
createSortedArray ( $modules )
function createSortedArray
addModule ( $module_file, $name, [$init = false] )
Function to dynamically load in a module
is_true ( $option )
Function to check for false options This function checks if the 'false' string is used.
fh_serialize ( $array )
Function to replace serialize
exit_fh ( )
Global addressable exit function

Constant Detail

Function Detail

createSortedArray

createSortedArray ( $modules )

function createSortedArray
 This function Sorts all the dynamically loaded modules, do they will be
 executed in the runlevel they specified.

 
Function Parameters:
Function Info:
Param - modules: array of module-objects * @
Return - sorted_modules: sorted array of module-objects

addModule

addModule ( $module_file, $name, [$init = false] )

Function to dynamically load in a module
 This function can be called from within the application to add another
 module. The added module should be in a higher runlevel

 
Function Parameters:
Function Info:
Param - module_file: the file that contains the module-code * @
Param - name: the name to be used in the modules-array * @
Param - init: true when called in initiation process (not all modules * available) * @
Return - message: a debug message to display (can be called before debug messaging module exists)

is_true

is_true ( $option )

Function to check for false options This function checks if the 'false' string is used.

 
Function Parameters:
Function Info:
Param - option: the option to check * @
Return - the boolean value

fh_serialize

fh_serialize ( $array )

Function to replace serialize
 
Function Parameters:
Function Info:
Param - string or array * @
Return - return_string: value serialized in a string

exit_fh

exit_fh ( )

Global addressable exit function
  This should call functions from different modules and debug and error

Function Parameters:
Function Info: