public function Menu::__construct in Forena Reports 7.5
Same name and namespace in other branches
- 8 src/Menu.php \Drupal\forena\Menu::__construct()
File
- src/
Menu.php, line 23 - Menu.inc Drupal menu builder @author davidmetzler
Class
Namespace
Drupal\forenaCode
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, ':');
}