void
addCalc
(string $field, [string $type = 'total'])
-
string
$field
-
string
$type
array
addFilters
([array $filters = false], [array $allowed_filter_keys = false], [array $disabled_filters = false])
-
array
$filters
-
array
$allowed_filter_keys
-
array
$disabled_filters
void
addSelectField
(string $field)
string
createHtmlTable
([array $row_names = false], [array $ignore_fields = false])
-
array
$row_names
-
array
$ignore_fields
boolean
delete
([string $table = false], [integer $id = false], [string $field_name = false])
-
string
$table
-
integer
$id
-
string
$field_name
boolean
drop
(string $table)
integer
duplicate
(string $table, mixed $id, [string $field_name = 'id'], [ $replace_field = false], string $select_table)
-
string
$table
-
mixed
$id
-
string
$field_name
-
string
$select_table
-
$replace_field
integer
executeInsert
([string $table = false], [array $fields = false])
-
string
$table
-
array
$fields
boolean
executeUpdate
([string $table = false], [array $fields = false], mixed $where_value, [string $where_field = false])
-
string
$table
-
array
$fields
-
mixed
$where_value
-
string
$where_field
void
generateInsert
([string $table = false], [array $fields = false])
-
string
$table
-
array
$fields
void
generateUpdate
([string $table = false], [array $fields = false], mixed $where_value, [string $where_field = 'id'])
-
string
$table
-
array
$fields
-
mixed
$where_value
-
string
$where_field
void
groupBy
(string $field)
void
inPastXDays
(string $field, [string $day_count = 7], [string $match = 'AND'])
-
string
$field
-
string
$day_count
-
string
$match
integer
insert
([string $table = false], [array $fields = false])
-
string
$table
-
array
$fields
integer
insertForm
([string $table = false])
void
leftJoin
(string $table, string $key, string $foreign_key, [array $fields = false], [ $from_table = false])
-
string
$table
-
string
$key
-
string
$foreign_key
-
array
$fields: Fields you want to return
-
$from_table
void
limit
([integer $start = 0], [integer $limit = 25])
-
integer
$start
-
integer
$limit
void
match
(string $search, [array $fields = false], [string $match = 'AND'])
-
string
$search
-
array
$fields
-
string
$match
mixed
openTable
([string $table = false])
void
orderBy
([string $field = false], [string $dir = false], [string $sort_location = false])
-
string
$field
-
string
$dir
-
string
$sort_location
void
orderByPreference
([string $sort_location = false], [string $field = 'id'], [string $dir = 'ASC'])
-
string
$sort_location
-
string
$field
-
string
$dir
void
paginate
(integer $current_page, [integer $per_page = 25])
-
integer
$current_page
-
integer
$per_page
object
query
([string $query = false])
array
quickSelectSingle
([string $table = false], [integer $id = false], [string $field = false])
-
string
$table
-
integer
$id
-
string
$field
string
quickSelectSingleToXml
([string $table = false], [integer $id = false])
-
string
$table
-
integer
$id
mixed
quickValue
([string $sql = false], [string $return_field = 'id'])
-
string
$sql
-
string
$return_field
array
results
([string $key_field = false], [string $sql = false])
-
string
$key_field: Field value to use for array element key values
-
string
$sql: Optional sql query replacing any generated
void
select
([string $table = false], [array $fields = false], [boolean $distinct = false])
-
string
$table
-
array
$fields
-
boolean
$distinct
void
setSecurityRule
(string $field, string $key, string $value)
-
string
$field
-
string
$key
-
string
$value
array
showStatus
(string $table)
boolean
update
([string $table = false], [array $fields = false], mixed $where_value, [string $where_field = false])
-
string
$table
-
array
$fields
-
mixed
$where_value
-
string
$where_field
integer
updateForm
([string $table = false])
void
where
(string $field, mixed $value, [string $match = 'AND'])
-
string
$field
-
mixed
$value
-
string
$match
void
whereAfterToday
(string $field, [boolean $include_today = false], [string $match = 'AND'])
-
string
$field
-
boolean
$include_today
-
string
$match
void
whereBeforeToday
(string $field, [boolean $include_today = true], [string $match = 'AND'])
-
string
$field
-
boolean
$include_today
-
string
$match
void
whereBetween
(string $field, mixed $start, string $end, [string $match = 'AND'])
-
string
$field
-
mixed
$start
-
string
$end
-
string
$match
void
whereGreaterThan
(string $field, mixed $value, [string $match = 'AND'])
-
string
$field
-
mixed
$value
-
string
$match
void
whereGreaterThanEqualTo
(string $field, mixed $value, [string $match = 'AND'])
-
string
$field
-
mixed
$value
-
string
$match
void
whereLessThan
(string $field, mixed $value, [string $match = 'AND'])
-
string
$field
-
mixed
$value
-
string
$match
void
whereLessThanEqualTo
(string $field, mixed $value, [string $match = 'AND'])
-
string
$field
-
mixed
$value
-
string
$match
void
whereLike
(string $field, mixed $value, [string $match = 'AND'])
-
string
$field
-
mixed
$value
-
string
$match
void
whereNot
(string $field, mixed $value, [string $match = 'AND'])
-
string
$field
-
mixed
$value
-
string
$match