CORE POS - Fannie
The CORE POS back end
Public Member Functions | Public Attributes | Protected Attributes | List of all members
InstallIndexPage Class Reference
Inheritance diagram for InstallIndexPage:
COREPOS\Fannie\API\InstallPage FanniePage

Public Member Functions

 css_content ()
 
 body_content ()
 
 create_op_dbs ($con, $op_db_name)
 
 create_trans_dbs ($con, $trans_db_name, $op_db_name)
 
 create_dlogs ($con)
 
 create_archive_dbs ($con, $archive_db_name, $archive_method)
 
- Public Member Functions inherited from COREPOS\Fannie\API\InstallPage
 getHeader ()
 
 getFooter ()
 

Public Attributes

 $description
 
 $themed = true
 
- Public Attributes inherited from COREPOS\Fannie\API\InstallPage
 $required = true
 
 $description
 
 $page_set = 'Installation'
 

Protected Attributes

 $title = 'Fannie install checks: Necessities'
 
 $header = 'Fannie install checks: Necessities'
 

Detailed Description

Class for the System Necessities (Install Home) install and config options

Member Function Documentation

InstallIndexPage::body_content ( )

Define any javascript needed

Returns
A javascript string function javascript_content(){ $js=""; return $js; }

Detect databases that are supported

InstallIndexPage::create_archive_dbs (   $con,
  $archive_db_name,
  $archive_method 
)

14Nov2014 Andy Removing these structures. Duplicates for most exist in the CoreWarehouse database. $dbms = strtoupper($con->dbms_name()); // code below expect capitalization $ret[] = create_if_needed($con,$dbms,$archive_db_name, 'sumUpcSalesByDay','arch'); $ret[] = create_if_needed($con,$dbms,$archive_db_name, 'sumRingSalesByDay','arch'); $ret[] = create_if_needed($con,$dbms,$archive_db_name, 'vRingSalesToday','arch'); $ret[] = create_if_needed($con,$dbms,$archive_db_name, 'sumDeptSalesByDay','arch'); $ret[] = create_if_needed($con,$dbms,$archive_db_name, 'vDeptSalesToday','arch'); $ret[] = create_if_needed($con,$dbms,$archive_db_name, 'sumFlaggedSalesByDay','arch'); $ret[] = create_if_needed($con,$dbms,$archive_db_name, 'sumMemSalesByDay','arch'); $ret[] = create_if_needed($con,$dbms,$archive_db_name, 'sumMemTypeSalesByDay','arch'); $ret[] = create_if_needed($con,$dbms,$archive_db_name, 'sumTendersByDay','arch'); $ret[] = create_if_needed($con,$dbms,$archive_db_name, 'sumDiscountsByDay','arch');

InstallIndexPage::create_dlogs (   $con)
Deprecated:
10Nov2014 $ret[] = create_if_needed($con,$FANNIE_SERVER_DBMS,$FANNIE_TRANS_DB, 'dheader','trans');
Deprecated:
10Nov2014 $ret[] = create_if_needed($con,$FANNIE_SERVER_DBMS,$FANNIE_TRANS_DB, 'dddItems','trans');
Deprecated:
21Jan14 $ret[] = create_if_needed($con,$FANNIE_SERVER_DBMS,$FANNIE_TRANS_DB, 'CashPerformDay_cache','trans');

14Nov2014 Andy Not sure this is the correct way to cache & compare product UPCs with vendor SKUs $ret[] = create_if_needed($con,$FANNIE_SERVER_DBMS,$FANNIE_TRANS_DB, 'skuMovementSummary','trans');

InstallIndexPage::create_op_dbs (   $con,
  $op_db_name 
)
Deprecated:
22Jan14 Somewhat deprecated. Others' code may rely on this so it's still created 06Nov14 All uses are checked first for existence. Not necessary to create on new install. $ret[] = create_if_needed($con,$FANNIE_SERVER_DBMS,$op_db_name, 'deptMargin','op');
Deprecated:
22Jan14 Only used for legacy pages $ret[] = create_if_needed($con,$FANNIE_SERVER_DBMS,$FANNIE_OP_DB, 'unfi','op');
Deprecated:
22Jan14 memtype has sufficient columns now table kept around until confirming it can be deleted 06Nov14 No longer needs to be created on new installs $ret[] = create_if_needed($con,$FANNIE_SERVER_DBMS,$FANNIE_OP_DB, 'memdefaults','op');
Deprecated:
06Nov14 andy origins table has name fields removing need for view $ret[] = create_if_needed($con,$FANNIE_SERVER_DBMS,$FANNIE_OP_DB, 'originName','op');
Deprecated:
06Nov14 andy Relates to old, never finished email statement/invoice function $ret[] = create_if_needed($con,$FANNIE_SERVER_DBMS,$FANNIE_OP_DB, 'emailLog','op');
Deprecated:
06Nov14 andy Relates to old, pre-BasicModel update mechanism $ret[] = create_if_needed($con,$FANNIE_SERVER_DBMS,$FANNIE_OP_DB, 'UpdateLog','op');
InstallIndexPage::create_trans_dbs (   $con,
  $trans_db_name,
  $op_db_name 
)
Deprecated:
7Nov14 Not used lane side $ret[] = create_if_needed($con,$FANNIE_SERVER_DBMS,$FANNIE_TRANS_DB, 'alog','trans');
Deprecated:
7Nov14 No longer used lane side $ret[] = create_if_needed($con,$FANNIE_SERVER_DBMS,$FANNIE_TRANS_DB, 'lane_config','trans');
InstallIndexPage::css_content ( )

Define any CSS needed

Returns
A CSS string

Member Data Documentation

InstallIndexPage::$description
Initial value:
= "
Class for the System Necessities install and config options page.
Tests for necessary system features.
Creates databases and tables, creates and re-creates views.
Should be run after every upgrade.
"

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