TwistPHP Documentation

sql

File path: dist/twist/Core/Models/Database/Record.model.php
Namespace: Twist\Core\Models\Database
Extends:

sqlGet the query that will be applied, settings the second parameter true - adds as new row (default: false)

Parameters

Name Type Description
[$blInsert = false]booleann/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$blInsert false;

//Call the function sql with the example vars
$resRecord = new \Twist\Core\Models\Database\Record();
$resRecord -> sql($blInsert);