Magrathea PHP 2

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

Methods

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
todo

merge array instead of replacing it

SetRaw()

Set raw condition for update

public SetRaw(mixed $condition) : mixed
Parameters
$condition : mixed
Tags
version
1.1

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!!!


        
On this page

Search results