File path: dist/twist/Core/Models/Package.model.php
Namespace: Twist\Core\Models
importSQL
— Install any DB and tables required by the package, this function is called by the packages install.php file located in the package folder.
Name | Description |
---|---|
$dirInstallSQL | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$dirInstallSQL = '/home/user/public_html/twist';
//Call the function importSQL with the example vars
$resPackage = new \Twist\Core\Models\Package();
$resPackage -> importSQL($dirInstallSQL);