TwistPHP Documentation

__construct

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

__constructConstruct the class with all the required data to make usable

Parameters

Name Type Description
$strDatabasestringn/a
$strTablestringn/a
$arrStructurearrayn/a
$arrRecordarrayn/a
[$blClone = false]booleann/a

Return Values

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

Example

<?php
//Set the variables for the example
$strDatabase 'foo';
$strTable 'foo';
$arrStructure = array(=> 'foo'=> 'bar');
$arrRecord = array(=> 'foo'=> 'bar');
$blClone false;

//Call the function __construct with the example vars
$resRecord = new \Twist\Core\Models\Database\Record();
$resRecord -> __construct($strDatabase$strTable$arrStructure$arrRecord$blClone);