TwistPHP Documentation

__construct

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

__constructObject containing the results of a query run by the TwistPHP database utility. The object contains all the information from the query run including SQL the query itself.

Parameters

Name Type Description
$blStatusbooleann/a
$strSQLstringn/a
$intNumRowsintegern/a
$intAffRowsintegern/a
$intInsIDintegern/a
$arrResultsarrayn/a
[$strErrorMessage = null]stringn/a
[$intErrorNumber = null]integern/a

Return Values

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

Example

<?php
//Set the variables for the example
$blStatus true;
$strSQL 'foo';
$intNumRows 124;
$intAffRows 124;
$intInsID 124;
$arrResults = array(=> 'foo'=> '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);