File path: dist/twist/Core/Models/Database/Records.model.php
Namespace: Twist\Core\Models\Database
__setDatabase
— Set the database that is being used in the current request if it is different from TWIST_DATABASE_NAME.
Name | Description |
---|---|
$strDatabase | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$strDatabase = 'foo';
//Call the function __setDatabase with the example vars
$resRecords = new \Twist\Core\Models\Database\Records();
$resRecords -> __setDatabase($strDatabase);