CORE POS - Fannie
The CORE POS back end
Static Public Member Functions | List of all members
FannieAPI Class Reference

Static Public Member Functions

static init ()
 
static loadClass ($name)
 
static listFiles ($path)
 
static listModules ($base_class, $include_base=false)
 
static pathToClass ($path)
 

Member Function Documentation

static FannieAPI::init ( )
static

Initialize session to retain class definition info.

static FannieAPI::listModules (   $base_class,
  $include_base = false 
)
static

Get a list of all available classes implementing a given base class

Parameters
$base_class[string] name of base class
$include_base[boolean] include base class name in the result set [optional, default false]
Returns
[array] of [string] class names
static FannieAPI::loadClass (   $name)
static

Load definition for given class

Parameters
$namethe class name

There's a namespace involved If the prefix is COREPOS, look for class in classlib2.0 directory path. If the prefix is COREPOS, look for class in modules/plugins2.0 directory path Otherwise, just strip off the namespace and search both plugins and API class library

static FannieAPI::pathToClass (   $path)
static

Determine fully namespaced class name based on filesystem path

Parameters
$path[string] file system path
Returns
[string] class name with namespace if applicable

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