public function DriverBase::getSQLInclude in Forena Reports 8
1 call to DriverBase::getSQLInclude()
- DriverBase::parseSQLFile in src/FrxPlugin/Driver/DriverBase.php
- Break the contents of a sql file down to its source.
File
- src/FrxPlugin/Driver/DriverBase.php, line 289
- Class that defines default methods for access control in an DriverBase
Class
- DriverBase
Namespace
Drupal\forena\FrxPlugin\Driver
Code
public function getSQLInclude($block_name) {
$block = $this
->loadBlock($block_name, TRUE);
if ($block && $block['type'] == 'sql') {
return $block;
}
else {
$this
->app()
->error("Include {$block_name}.sql not found");
return NULL;
}
}