You are here

class FrxInclude in Forena Reports 8

Same name in this branch
  1. 8 src/FrxPlugin/Template/FrxInclude.php \Drupal\forena\Template\FrxInclude
  2. 8 src/FrxPlugin/Renderer/FrxInclude.php \Drupal\forena\FrxPlugin\Renderer\FrxInclude

Hierarchy

Expanded class hierarchy of FrxInclude

1 string reference to 'FrxInclude'
FrxInclude::generate in src/FrxPlugin/Template/FrxInclude.php
Implement template generator.

File

src/FrxPlugin/Template/FrxInclude.php, line 10
FrxInclude Include a reference to another report as an asset. @author davidmetzler

Namespace

Drupal\forena\Template
View source
class FrxInclude extends TemplateBase {
  public function scrapeConfig(\SimpleXMLElement $xml) {
    return [];
  }

  /**
   * Implement template generator.
   * @see FrxRenderer::generate()
   */
  public function generate() {
    $src = $this
      ->extract('src', $key);
    $div = $this
      ->blockDiv($config);
    $frx = array(
      'src' => $src,
      'renderer' => 'FrxInclude',
    );
    $this
      ->addNode($div, 4, 'div', NULL, $config, $frx);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FrxAPI::app public function Returns containing application service
FrxAPI::currentDataContext public function Get the current data context.
FrxAPI::currentDataContextArray public function
FrxAPI::dataManager public function Returns the data manager service
FrxAPI::dataService public function Return Data Service
FrxAPI::documentManager public function Returns the fornea document manager
FrxAPI::error public function Report an error
FrxAPI::getDataContext public function Get the context of a specific id.
FrxAPI::getDocument public function Get the current document
FrxAPI::getReportFileContents public function Load the contents of a file in the report file system.
FrxAPI::popData public function Pop data off of the stack.
FrxAPI::pushData public function Push data onto the Stack
FrxAPI::report public function Run a report with a particular format. 1
FrxAPI::reportFileSystem public function Get the current report file system.
FrxAPI::setDataContext public function Set Data context by id.
FrxAPI::setDocument public function Change to a specific document type.
FrxAPI::skins public function Get list of skins.
FrxInclude::generate public function Implement template generator. Overrides TemplateInterface::generate
FrxInclude::scrapeConfig public function Overrides TemplateInterface::scrapeConfig
TemplateBase::$columns public property
TemplateBase::$configuration public property @var array Confiuration of template
TemplateBase::$id public property
TemplateBase::$name public property
TemplateBase::$numeric_columns public property
TemplateBase::$xmlns public property
TemplateBase::columns public function Extract a list of columns from the data context.
TemplateBase::configure public function Overrides TemplateInterface::configure
TemplateBase::innerXML public function Return the inside xml of the current node Overrides FrxAPI::innerXML