QueryUpdate
extends Query
in package
Extension of Magrathea Query for creating Update queries
Table of Contents
Properties
- $fields : mixed
- $rawFields : mixed
Methods
- __construct() : mixed
- Set() : mixed
- Set field for value
- SetArray() : mixed
- Set array of fields
- SetRaw() : mixed
- Set raw condition for update
- SQL() : string
Properties
$fields
private
mixed
$fields
$rawFields
private
mixed
$rawFields
Methods
__construct()
public
__construct() : mixed
Set()
Set field for value
public
Set(string $field, string $value) : mixed
Parameters
- $field : string
-
field
- $value : string
-
value for field sent
SetArray()
Set array of fields
public
SetArray(array<string|int, mixed> $arr) : mixed
Parameters
- $arr : array<string|int, mixed>
-
array fields
Tags
SetRaw()
Set raw condition for update
public
SetRaw(mixed $condition) : mixed
Parameters
- $condition : mixed
Tags
SQL()
public
SQL() : string
...and we're gonna build the query for you. After gathering all the information, this function returns to you a wonderful SQL query for be executed or to be hang in the wall of a gallery art exhibition, depending how good you are in building queries
Return values
string —Query!!!