CORE POS - Fannie
The CORE POS back end
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ViewModel Class Reference
Inheritance diagram for ViewModel:
BasicModel ArHistoryTodayModel ArHistoryTodaySumModel CCredHistoryTodayModel CCredHistoryTodaySumModel CCredLiveBalanceModel CCredMemCreditBalanceModel FloorSectionsListViewModel HouseCouponThisMonthModel MasterSuperDeptsModel SpanningViewModel StockSumTodayModel SuperMinIdViewModel TenderTapeGenericModel UnpaidArBalancesModel UnpaidArTodayModel

Public Member Functions

 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 Member Functions

 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)
 

Protected Attributes

 $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
 

Member Function Documentation

ViewModel::create ( )

Create specified view

Returns
[boolean]
ViewModel::definition ( )

Generate SQL definition of view. Is a method rather than property in case any part of the query needs to be generated based on DBMS and/or configuration values

Returns
[string] view definition

Note: This should be everything that follows the "CREATE VIEW view_name AS". Do not include that part.

ViewModel::delete ( )

Deletes the view. This will drop an existing view but will not drop an existing table.

Returns
[boolean]
ViewModel::normalize (   $db_name,
  $mode = BasicModel::NORMALIZE_MODE_CHECK,
  $doCreate = false 
)

Normalize will drop a table and recreate as a view if needed

ViewModel::save ( )

Does nothing. No meaning in context of a view.


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