public function FrxMenu::__construct in Forena Reports 7.3
Same name and namespace in other branches
- 7.4 FrxMenu.inc \FrxMenu::__construct()
File
- ./
FrxMenu.inc, line 21 - FrxMenu.inc Drupal menu builder @author davidmetzler
Class
- FrxMenu
- @file FrxMenu.inc Drupal menu builder @author davidmetzler
Code
public function __construct() {
$docs = variable_get('forena_doc_defaults', array());
// Load settings array into normal array
if ($docs) {
foreach ($docs as $doc => $enabled) {
if ($enabled) {
$this->doc_defaults[] = $doc;
}
}
}
else {
$this->doc_formats = array(
'web',
);
}
// Load settings array into normal array
$docs = variable_get('forena_doc_formats', Frx::documentTypes(TRUE));
if ($docs) {
foreach ($docs as $doc => $enabled) {
if ($enabled) {
$this->doc_formats[] = $doc;
}
}
}
$this->teng = Frx::SyntaxEngine(FRX_SQL_TOKEN, ':');
}