class Drupal in Forena Reports 8
Provides Drupal Rendering in a themed drupal page.
Plugin annotation
@FrxDocument(
id= "drupal",
name="Drupal Render Array",
ext="drupal"
)
Hierarchy
- class \Drupal\forena\FrxPlugin\Document\DocumentBase implements DocumentInterface uses FrxAPI
- class \Drupal\forena\FrxPlugin\Document\Drupal
Expanded class hierarchy of Drupal
2 string references to 'Drupal'
- DataSourceDefinitionForm::buildForm in src/
Form/ DataSourceDefinitionForm.php - [@inheritdoc}
- settings.php in data/
drupal/ settings.php
File
- src/
FrxPlugin/ Document/ Drupal.php, line 19 - Drupal.inc Standard web document manager @author metzlerd
Namespace
Drupal\forena\FrxPlugin\DocumentView source
class Drupal extends DocumentBase {
public function header() {
$this->write_buffer = '';
}
/**
* @return array
* Drupal render array containing report.
*/
public function flush() {
$content = [];
// Set Dynamic title for the page
if ($this->title) {
$content['#title'] = $this->title;
}
// Add the parameters form
if ($this->parameters_form) {
$content['parameters'] = $this->parameters_form;
}
// Add the skin library references
if ($this->skin_name) {
if (!empty($this->skin->info['library'])) {
$content['#attached']['library'][] = 'forena/skin.' . $this->skin_name;
}
if (!empty($this->skin->info['libraries'])) {
foreach ($this->skin->info['libraries'] as $library) {
$content['#attached']['library'][] = $library;
}
}
}
// Add the content.
$content['report']['#type'] = 'inline_template';
$content['report']['#context'] = [];
$content['report']['#template'] = $this->write_buffer;
return $content;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DocumentBase:: |
public | property | ||
DocumentBase:: |
public | property | ||
DocumentBase:: |
protected | property | ||
DocumentBase:: |
public | property | ||
DocumentBase:: |
protected | property | ||
DocumentBase:: |
public | property | ||
DocumentBase:: |
public | property | ||
DocumentBase:: |
public | property | ||
DocumentBase:: |
public | property | ||
DocumentBase:: |
public | property | ||
DocumentBase:: |
protected | property | ||
DocumentBase:: |
protected | property | ||
DocumentBase:: |
public | property | ||
DocumentBase:: |
protected | property | ||
DocumentBase:: |
public | function | ||
DocumentBase:: |
public | function | Wrapper function for check output to default the right type. | |
DocumentBase:: |
public | function |
Clear the buffer Overrides DocumentInterface:: |
|
DocumentBase:: |
public | function | Perform character set conversion | |
DocumentBase:: |
public | function |
No default footer. Overrides DocumentInterface:: |
1 |
DocumentBase:: |
public | function | ||
DocumentBase:: |
public | function |
Overrides DocumentInterface:: |
|
DocumentBase:: |
public | function |
Overrides DocumentInterface:: |
|
DocumentBase:: |
public | function |
Write Overrides DocumentInterface:: |
|
Drupal:: |
public | function |
Overrides DocumentBase:: |
|
Drupal:: |
public | function |
Default implementation to put in content type based headers. Overrides DocumentBase:: |
|
FrxAPI:: |
public | function | Returns containing application service | |
FrxAPI:: |
public | function | Get the current data context. | |
FrxAPI:: |
public | function | ||
FrxAPI:: |
public | function | Returns the data manager service | |
FrxAPI:: |
public | function | Return Data Service | |
FrxAPI:: |
public | function | Returns the fornea document manager | |
FrxAPI:: |
public | function | Report an error | |
FrxAPI:: |
public | function | Get the context of a specific id. | |
FrxAPI:: |
public | function | Get the current document | |
FrxAPI:: |
public | function | Load the contents of a file in the report file system. | |
FrxAPI:: |
function | Enter description here... | 1 | |
FrxAPI:: |
public | function | Pop data off of the stack. | |
FrxAPI:: |
public | function | Push data onto the Stack | |
FrxAPI:: |
public | function | Run a report with a particular format. | 1 |
FrxAPI:: |
public | function | Get the current report file system. | |
FrxAPI:: |
public | function | Set Data context by id. | |
FrxAPI:: |
public | function | Change to a specific document type. | |
FrxAPI:: |
public | function | Get list of skins. |