class HTML in Forena Reports 8
Same name in this branch
- 8 src/FrxPlugin/Document/HTML.php \Drupal\forena\FrxPlugin\Document\HTML
- 8 src/FrxPlugin/AjaxCommand/Html.php \Drupal\forena\FrxPlugin\AjaxCommand\Html
Provides Straight HTML page suitable for replacements
Plugin annotation
@FrxDocument(
id= "html",
name="Unthemed HTML Page",
ext="html"
)
Hierarchy
- class \Drupal\forena\FrxPlugin\Document\DocumentBase implements DocumentInterface uses FrxAPI
- class \Drupal\forena\FrxPlugin\Document\HTML
Expanded class hierarchy of HTML
File
- src/
FrxPlugin/ Document/ HTML.php, line 18 - HTML Straight html document with no wrapping theme. @author davidmetzler
Namespace
Drupal\forena\FrxPlugin\DocumentView source
class HTML extends DocumentBase {
public function header() {
$this->headers = [];
$this->headers['Content-Type'] = 'text/html ;charset=' . $this->charset;
}
public function flush() {
$css = '';
$output = '<html><head>';
$output .= '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>';
$this->title;
// @TODO: Add inline styles and css libraries
if ($css) {
$output = '<style type="text/css">';
$output .= $css;
/*
if (isset($r->rpt_xml->head->style)) {
$sheet = (string)$r->rpt_xml->head->style;
$output .= $sheet;
}
*/
$output .= '</style>';
}
$output .= '<title>' . $this->title . '</title></head><body class="forena-report"><h1>' . $this->title . '</h1>' . $this->write_buffer . '</body></html>';
return $output;
}
}
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:: |
|
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. | |
HTML:: |
public | function |
Write the output to disk. Overrides DocumentBase:: |
|
HTML:: |
public | function |
Default implementation to put in content type based headers. Overrides DocumentBase:: |