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

Public Member Functions

 doc ()
 
 getLocalOrigins ()
 
- Public Member Functions inherited from BasicModel
 __construct ($con)
 
 pushToLanes ()
 
 deleteFromLanes ()
 
 getModels ()
 
 setConnectionByName ($db_name)
 

Protected Attributes

 $name = "origins"
 
 $preferred_db = 'op'
 
 $columns
 
- 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 BasicModel
 normalizeLanes ($db_name, $mode=BasicModel::NORMALIZE_MODE_CHECK)
 
 loadHooks ()
 
 afterNormalize ($db_name, $mode)
 

Member Function Documentation

OriginsModel::getLocalOrigins ( )

Look up local origins. Normally these are found in the origins table but will use the older, deprecated originName table if it exists and the appropriate columns aren't in the origins table.

Returns
[array] originID => shortName

Member Data Documentation

OriginsModel::$columns
protected
Initial value:
= array(
'originID' => array('type'=>'INT', 'increment'=>true, 'primary_key'=>true),
'countryID' => array('type'=>'INT'),
'stateProvID' => array('type'=>'INT'),
'customID' => array('type'=>'INT'),
'local' => array('type'=>'TINYINT', 'default'=>0),
'name' => array('type'=>'VARCHAR(100)'),
'shortName' => array('type'=>'VARCHAR(50)'),
)

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