CORE POS - Fannie
The CORE POS back end
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
BasicModel Class Reference
Inheritance diagram for BasicModel:
AccountClassesModel ArEomSummaryModel ArHistoryModel ArHistorySumModel AttendeesModel AutoCouponsModel BatchBarcodesModel BatchCutPasteModel BatchesModel BatchListModel BatchTypeModel BrandsModel CalendarsModel CalendarSubscriptionsModel CapturedSignatureModel CashPerformDayModel CCredConfigModel CCredHistoryBackupModel CCredHistoryModel CCredHistorySumModel CCredMembershipsModel CCredProgramsModel ConsistentProductRulesModel CoopDealsItemsModel CoreWarehouseModel CronBackupModel CustAvailablePrefsModel CustdataModel CustomerAccountsModel CustomerAccountSuspensionsModel CustomerNotificationsModel CustomersModel CustomReceiptModel CustomReportsModel CustPreferencesModel CustReceiptMessageModel DailyChecksModel DailyCountsModel DailyDepositModel DailyNotesModel DateRestrictModel DefectorRulesModel DefectorTargetsModel DeliInventoryCat2Model DeliInventoryCatModel DepartmentsModel DeveloperRulesModel DeveloperTargetsModel DisableCouponModel DTransactionsModel EmailUsageLogModel EmployeesModel EquityHistorySumModel EquityPaymentPlanAccountsModel EquityPaymentPlansModel FloorSectionProductMapModel FloorSectionsModel GumDividendPayoffMapModel GumDividendsModel GumEmailLogModel GumEquityPayoffMapModel GumEquitySharesModel GumLoanAccountsModel GumLoanDefaultInterestRatesModel GumLoanLedgerModel GumLoanPayoffMapModel GumLoanValidTermsModel GumPayoffsModel GumSettingsModel GumTaxIdentifiersModel HouseCouponItemsModel HouseCouponsModel HouseVirtualCouponsModel IgnoredBarcodesModel InventoryCacheModel InventoryCountsModel LikeCodesModel MemberCardsModel MemberNotesModel MemContactModel MemContactPrefsModel MemDatesModel MeminfoModel MemtypeModel MetaProductRulesModel MonthviewEventsModel NutriFactOptItemsModel NutriFactReqItemsModel ObfCategoriesModel ObfCategorySuperDeptMapModel ObfLaborModel ObfLaborModelV2 ObfQuartersModel ObfSalesCacheModel ObfWeeksModel OriginCountryModel OriginCustomRegionModel OriginsModel OriginStateProvModel OverShortsLogModel PagePermissionsModel ParametersModel PatronageModel PaycardTransactionsModel PayPeriodsModel PendingSpecialOrderModel PermissionsModel PriceRulesModel PriceRuleTypesModel ProdCostHistoryModel ProdDepartmentHistoryModel ProdExtraModel ProdFlagsModel ProdPhysicalLocationModel ProdPriceHistoryModel ProductExpiresModel ProductOriginsMapModel ProductsModel ProductSummaryLastQuarterModel ProductUserModel ProductWeeklyLastQuarterModel ProdUpdateModel PurchaseOrderItemsModel PurchaseOrderModel PurchaseOrderNotesModel PurchaseOrderSummaryModel QuickLookupsModel ReasoncodesModel ReportDataCacheModel SaInventoryModel SaListModel ScaleItemsModel ScheduledEmailQueueModel ScheduledEmailTemplatesModel ServiceScaleItemMapModel ServiceScalesModel ShelfTagQueuesModel ShelftagsModel ShiftsModel ShrinkReasonsModel SpecialDeptMapModel SpecialOrderDeptMapModel SpecialOrderHistoryModel SpecialOrderMemDiscountsModel SpecialOrdersModel StaffArAccountsModel StaffArDatesModel StockpurchasesModel StoreBatchMapModel StoreEmployeeMapModel StoresModel SubDeptsModel SuperDeptEmailsModel SuperDeptNamesModel SuperDeptsModel SuspensionHistoryModel SuspensionsModel TaxRatesModel TendersModel TimesheetDepartmentsModel TimesheetEmployeesModel TimesheetModel UpcLikeModel UpdateAccountLogModel UpdateCustomerLogModel UserGroupPrivsModel UserGroupsModel UserKnownPrivsModel UserPrivsModel UserSessionsModel UsersModel VendorBreakdownsModel VendorContactModel VendorDeliveriesModel VendorDepartmentsModel VendorItemsModel VendorSKUtoPLUModel VendorsModel VendorSpecificMarginsModel VendorSRPsModel ViewModel VoidTransHistoryModel WeeksLastQuarterModel WfcHtCuspingModel WfcHtDepartmentsModel WfcHtEmployeesModel WfcHtEmpWeeklyNotesModel WfcHtEvalCommentsModel WfcHtEvalInfoModel WfcHtEvalScoresModel WfcHtEvalTypesModel WfcHtFirstPayPeriodModel WfcHtFullTimeStatusModel WfcHtHoursAllTimeModel WfcHtHoursYearlyModel WfcHtHoursYTDModel WfcHtImportedHoursDataModel WfcHtOldPTOModel WfcHtPayPeriodsModel WfcHtPTOLevelsModel WfcHtPTOModel WfcHtSalaryHoursModel WfcHtSalaryPTOYTDModel WfcHtStartYearMonthModel WfcHtUTOModel WfcHtWeeklyHoursModel WfcHtZipCodesModel wfcuRegistryModel WicItemsModel

Public Member Functions

 __construct ($con)
 
 pushToLanes ()
 
 deleteFromLanes ()
 
 getModels ()
 
 setConnectionByName ($db_name)
 

Public Attributes

const NORMALIZE_MODE_CHECK = 1
 
const NORMALIZE_MODE_APPLY = 2
 

Protected Member Functions

 normalizeLanes ($db_name, $mode=BasicModel::NORMALIZE_MODE_CHECK)
 
 loadHooks ()
 
 afterNormalize ($db_name, $mode)
 

Protected Attributes

 $normalize_lanes = false
 
 $currently_normalizing_lane = false
 

Constructor & Destructor Documentation

BasicModel::__construct (   $con)

Constructor

Parameters
$cona SQLManager object

Member Function Documentation

BasicModel::afterNormalize (   $db_name,
  $mode 
)
protected

Interface method Should eventually inherit from

BasicModel::getModels ( )

Interface method Should eventually inherit from

Experiment using lambdas. I was curious if I could do recursion without having a named function.

BasicModel::loadHooks ( )
protected

Search available classes to load applicable hook objects into this instance

BasicModel::setConnectionByName (   $db_name)

Interface method Should eventually inherit from

Member Data Documentation

BasicModel::$currently_normalizing_lane = false
protected

Status variable. Besides normalize() itself some hook functions may need to know if the current update is on the server vs on the lane.

BasicModel::$normalize_lanes = false
protected

When updating server-side tables, apply the same updates to lane-side tables. Default is false.

const BasicModel::NORMALIZE_MODE_APPLY = 2

apply changes

const BasicModel::NORMALIZE_MODE_CHECK = 1

check for potential changes


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