TwistPHP Documentation

__setDatabase

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

__setDatabaseSet the database that is being used in the current request if it is different from TWIST_DATABASE_NAME.

Parameters

Name Type Description
$strDatabasestringn/a

Return Values

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

Example

<?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);