File path: dist/twist/Core/Models/Database/Result.model.php
Namespace: Twist\Core\Models\Database
__construct
— Object containing the results of a query run by the TwistPHP database helper. The object contains all the information from the query run including SQL the query itself.
Name | Description |
---|---|
$blStatus | n/a |
$strSQL | n/a |
$intNumRows | n/a |
$intAffRows | n/a |
$intInsID | n/a |
$arrResults | n/a |
[$strErrorMessage = null] | n/a |
[$intErrorNumber = null] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$blStatus = true;
$strSQL = 'foo';
$intNumRows = 124;
$intAffRows = 124;
$intInsID = 124;
$arrResults = array(0 => 'foo', 1 => 'bar');
$strErrorMessage = null;
$intErrorNumber = null;
//Call the function __construct with the example vars
$resResult = new \Twist\Core\Models\Database\Result();
$resResult -> __construct($blStatus, $strSQL, $intNumRows, $intAffRows, $intInsID, $arrResults, $strErrorMessage, $intErrorNumber);