CORE POS - Fannie
The CORE POS back end
Public Member Functions | Protected Attributes | List of all members
SpanningViewModel Class Reference
Inheritance diagram for SpanningViewModel:
ViewModel BasicModel ArLiveBalanceModel EquityLiveBalanceModel MemChargeBalanceModel

Public Member Functions

 addExtraDB ($name)
 
 findExtraTable ($table)
 
- Public Member Functions inherited from ViewModel
 definition ()
 
 create ()
 
 delete ()
 
 save ()
 
 normalize ($db_name, $mode=BasicModel::NORMALIZE_MODE_CHECK, $doCreate=false)
 
- Public Member Functions inherited from BasicModel
 __construct ($con)
 
 pushToLanes ()
 
 deleteFromLanes ()
 
 getModels ()
 
 setConnectionByName ($db_name)
 

Protected Attributes

 $extra_db_names = array()
 
- Protected Attributes inherited from ViewModel
 $name = '__VirtualClass_ShouldNotExist'
 
- Protected Attributes inherited from BasicModel
 $normalize_lanes = false
 
 $currently_normalizing_lane = false
 

Additional Inherited Members

- Public Attributes inherited from BasicModel
const NORMALIZE_MODE_CHECK = 1
 
const NORMALIZE_MODE_APPLY = 2
 
- Protected Member Functions inherited from ViewModel
 normalizeCreate ($mode, $doCreate)
 
 normalizeTableToView ($mode, $doCreate)
 
- Protected Member Functions inherited from BasicModel
 normalizeLanes ($db_name, $mode=BasicModel::NORMALIZE_MODE_CHECK)
 
 loadHooks ()
 
 afterNormalize ($db_name, $mode)
 

Member Function Documentation

SpanningViewModel::addExtraDB (   $name)

Add another database name

Parameters
$name[string] database name
SpanningViewModel::findExtraTable (   $table)

Locate a table in one of the extra databases

Parameters
$table[string] name of table/view
Returns
database_name.table_name or [boolean] false

Underlying tableExists function does not cope with identifier escapes correctly. Omitting backticks (etc) is not ideal but works in most cases.

Member Data Documentation

SpanningViewModel::$extra_db_names = array()
protected

Name(s) of other databases the view makes use of


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