class FrxMergeDocument in Forena Reports 8
Hierarchy
- class \Drupal\forena\Template\TemplateBase implements TemplateInterface uses FrxAPI
- class \Drupal\forena\Template\FrxMergeDocument
Expanded class hierarchy of FrxMergeDocument
1 string reference to 'FrxMergeDocument'
- ReportEditor::scrapeBlockConfig in src/
Editor/ ReportEditor.php - Scrape Data block configuration This tries to introspect the frx:block configuration based on the child nodes in the report by calling the getConfig method on the block.
File
- src/
FrxPlugin/ Template/ FrxMergeDocument.php, line 3
Namespace
Drupal\forena\TemplateView source
class FrxMergeDocument extends TemplateBase {
public $templateName = 'Generic Merge Document';
/**
* Returns the section
* Enter description here ...
*/
public function configForm($config) {
$form_ctl = array();
$form_ctl['content'] = array(
'#type' => 'text_format',
'#title' => t('Document'),
'#rows' => 5,
'#format' => $this->input_format,
'#default_value' => @$config['content']['value'],
);
return $form_ctl;
}
public function configValidate(&$config) {
$this
->validateTextFormats($config, array(
'content',
));
}
public function scrapeConfig(\SimpleXMLElement $xml) {
$config = array();
$config['class'] = get_class($this);
$this
->extractTemplateHTML($this->reportDocDomNode, $config);
return $config;
}
public function generate() {
$config = $this->configuration;
$config['class'] = get_class($this);
$config['foreach'] = '*';
$div = $this
->blockDiv($config);
$this
->removeChildren($div);
$this
->addFragment($div, $config['content']['value']);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
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:: |
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. | |
FrxMergeDocument:: |
public | property | ||
FrxMergeDocument:: |
public | function | Returns the section Enter description here ... | |
FrxMergeDocument:: |
public | function | ||
FrxMergeDocument:: |
public | function |
Overrides TemplateInterface:: |
|
FrxMergeDocument:: |
public | function |
Overrides TemplateInterface:: |
|
TemplateBase:: |
public | property | ||
TemplateBase:: |
public | property | @var array Confiuration of template | |
TemplateBase:: |
public | property | ||
TemplateBase:: |
public | property | ||
TemplateBase:: |
public | property | ||
TemplateBase:: |
public | property | ||
TemplateBase:: |
public | function | Extract a list of columns from the data context. | |
TemplateBase:: |
public | function |
Overrides TemplateInterface:: |
|
TemplateBase:: |
public | function |
Return the inside xml of the current node Overrides FrxAPI:: |