You are here

class FrxReport in Forena Reports 8

Class FrxReport

Plugin annotation


@FrxContext(
  id = "FrxReport"
)

Hierarchy

Expanded class hierarchy of FrxReport

1 string reference to 'FrxReport'
forena_forena_plugins in ./forena.module
Self register plugins with forena.

File

src/FrxPlugin/Context/FrxReport.php, line 17

Namespace

Drupal\forena\FrxPlugin\Context
View source
class FrxReport extends ContextBase {
  use FrxAPI;

  // Get report based on current context and embed it.
  public function getValue($key) {
    $output = $this
      ->report($key);
    if (is_array($output)) {
      $output = $output['report']['#template'];
    }
    return $output;
  }

  // Override obejct getter.
  public function __get($key) {
    return $this
      ->getValue($key);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ContextBase::asXML public function Return the properteis of the element. Overrides ContextInterface::asXML
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::innerXML function Enter description here... 1
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.
FrxReport::getValue public function
FrxReport::__get public function