CORE POS - IS4C
The CORE POS front end
Static Public Member Functions | List of all members
AutoLoader Class Reference
Inheritance diagram for AutoLoader:
LibraryClass

Static Public Member Functions

static loadClass ($name)
 
static loadMap ()
 
static listModules ($base_class, $include_base=False)
 
static blacklist ($class)
 
static fileToFullClass ($file)
 
static dispatch ($redirect=true)
 

Detailed Description

Map available modules and register automatic class loading

Member Function Documentation

static AutoLoader::dispatch (   $redirect = true)
static

Use a dedicated dispatch function to launch page classes.

Parameters
$redirect[boolean, default true] go to login page if an error occurs

This method checks for the session variable CashierNo as a general indicator that the current session has been properly initialized

static AutoLoader::listModules (   $base_class,
  $include_base = False 
)
static

Get a list of available modules with the given base class

Parameters
$base_classstring class name
$include_basewhether base class should be included in the return value
Returns
an array of class names
static AutoLoader::loadClass (   $name)
static

Autoload class by name

Parameters
$nameclass name
static AutoLoader::loadMap ( )
static

Map available classes. Class names should match filenames for lookups to work.


The documentation for this class was generated from the following file: