Magrathea PHP 2

QueryInsert extends Query
in package

Extension of Magrathea Query for creating Insert queries

Table of Contents

Properties

$arrValues  : mixed
$fieldNames  : mixed

Methods

__construct()  : mixed
SQL()  : string
Values()  : QueryInsert
Array with values send an array which each key represents a field and the value is the correspondent and we're gonna build it nicely to you! =)

Properties

Methods

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

Values()

Array with values send an array which each key represents a field and the value is the correspondent and we're gonna build it nicely to you! =)

public Values(array<string|int, mixed> $vals) : QueryInsert
Parameters
$vals : array<string|int, mixed>

array with values

Return values
QueryInsert

        
On this page

Search results