public function FrxRepoMan::sqlBlock in Forena Reports 7.4
Same name and namespace in other branches
- 7.3 FrxRepoMan.inc \FrxRepoMan::sqlBlock()
Parse a block into its data
Parameters
$source Text data of the SQL block definition:
Return value
array block definition.
File
- ./
FrxRepoMan.inc, line 279 - FrxRepoMan.inc Enter description here ... @author davidmetzler
Class
- FrxRepoMan
- @file FrxRepoMan.inc Enter description here ... @author davidmetzler
Code
public function sqlBlock($provider, $source) {
//Intstantiate the provider
$o = $this
->repository($provider);
$repos = @$this->repositories[$provider];
if (isset($repos['enabled']) && !$repos['enabled']) {
return '';
}
if ($o) {
return $o
->parseSQLFile($source);
}
}