model

model

new model()

This is the main model for the mvc framework, that which all other commands extend

Methods

(private, static) buildQuery(type, tables, fields, values, clause)

Build a query string based on the given values

Parameters:
Name Type Description
type String

The type of query find, add, edit, remove, replace

tables String

The tables related to the query

fields String

Relative fields to return

values String

Values for the update statements

clause String

The clause to add to the end of the query