public static function Frx::documentTypes in Forena Reports 7.4
Same name and namespace in other branches
- 7.5 Frx.inc \Frx::documentTypes()
- 7.3 Frx.inc \Frx::documentTypes()
Returns list of document types supported.
Parameters
unknown_type $all:
4 calls to Frx::documentTypes()
- forena_doc_formats_settings in ./
forena.admin.inc - FrxEditor::documentLinks in ./
FrxEditor.inc - FrxEditor::getDocgen in ./
FrxEditor.inc - Gets the array of selected document types or default if they are present.
- FrxMenu::__construct in ./
FrxMenu.inc
File
- ./
Frx.inc, line 150 - Frx.incL General Forena Reporting Class
Class
Code
public static function documentTypes($all = FALSE) {
require_once 'FrxDocument.inc';
static $supported_doctypes = '';
if (!$supported_doctypes || $all) {
$doc_types = module_invoke_all('forena_document_types');
if (!$all) {
unset($doc_types['web']);
}
$supported_doctypes = array();
foreach ($doc_types as $type => $doc) {
$supported_doctypes[$type] = $type;
}
}
return $supported_doctypes;
}