File path: dist/twist/Core/Models/Database/Table.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
$resTable = new \Twist\Core\Models\Database\Table();
$resTable -> __setDatabase($strDatabase);