You are here

public static function Frx::documentTypes in Forena Reports 7.3

Same name and namespace in other branches
  1. 7.5 Frx.inc \Frx::documentTypes()
  2. 7.4 Frx.inc \Frx::documentTypes()

Returns list of document types supported.

Parameters

unknown_type $all:

3 calls to Frx::documentTypes()
forena_doc_formats_settings in ./forena.admin.inc
FrxMenu::__construct in ./FrxMenu.inc
FrxWebDoc::render in docformats/FrxWebDoc.inc

File

./Frx.inc, line 111
Frx.incL General Forena Reporting Class

Class

Frx

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;
}