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

Public Member Functions

 __construct ($con)
 
 getTagData ($price=false)
 
 doc ()
 
 load ()
 
 enableLogging ($e)
 
 save ()
 
 saveAllStores ()
 
 delete ()
 
 hookAddColumnprice_rule_id ()
 
- Public Member Functions inherited from BasicModel
 __construct ($con)
 
 pushToLanes ()
 
 deleteFromLanes ()
 
 getModels ()
 
 setConnectionByName ($db_name)
 

Protected Attributes

 $name = 'products'
 
 $preferred_db = 'op'
 
 $columns
 
 $unique = array('upc')
 
 $normalize_lanes = true
 
- 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

ProductsModel::delete ( )

Log deletes to prodUpdate Delete corresponding records from other tables

ProductsModel::getTagData (   $price = false)

Standardization method to ensure shelf tag fields are calculated consistently for a given item.

Parameters
$price[optional, default false] use a specified price rather than the product's current price
Returns
[keyed array] of tag data with the following keys:
  • upc
  • description
  • brand
  • normal_price
  • sku
  • size
  • units
  • vendor
  • pricePerUnit

If a custom data source has been specified, let that handle the calculations

ProductsModel::load ( )

Transition mechanism. Auto-append store_id value if only a UPC has been specified.


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