You are here

public function RendererBase::mergedAttributes in Forena Reports 7.5

Standard php array containing merged attributes Enter description here ...

8 calls to RendererBase::mergedAttributes()
FrxCrosstab::render in src/Renderer/FrxCrosstab.php
Render the crosstab
FrxCrosstab::scrapeConfig in src/Renderer/FrxCrosstab.php
Extract table configuration from the HTML
FrxInclude::render in src/Renderer/FrxInclude.php
Default Render action, which simply does normal forena rendering. You can use renderDomNode at any time to generate the default forena rendering methods.
FrxMyReports::render in src/Renderer/FrxMyReports.php
Default Render action, which simply does normal forena rendering. You can use renderDomNode at any time to generate the default forena rendering methods.
FrxSVGGraph::prepareGraph in src/Renderer/FrxSVGGraph.php

... See full list

File

src/Renderer/RendererBase.php, line 462
FrxRenderer.php Base class for Frx custom Renderer @author davidmetzler

Class

RendererBase

Namespace

Drupal\forena\Renderer

Code

public function mergedAttributes($node = NULL) {
  if ($node) {
    $frx_attributes = $node
      ->attributes($this->xmlns);
    $html_attributes = $node
      ->attributes();
  }
  else {
    $frx_attributes = $this->frxAttributes;
    $html_attributes = $this->htmlAttributes;
  }
  $attributes = array();
  if ($frx_attributes) {
    foreach ($frx_attributes as $key => $data) {
      RendererBase::addAttributes($attributes, $key, $data);
    }
  }
  if ($html_attributes) {
    foreach ($html_attributes as $key => $data) {
      RendererBase::addAttributes($attributes, $key, $data);
    }
  }
  $skin_data = Frx::Data()
    ->getContext('skin');
  $class = get_class($this);
  if (isset($skin_data[$class])) {
    $attributes = array_merge($skin_data[$class], $attributes);
  }
  $classes = class_parents($this);
  array_pop($classes);
  if ($classes) {
    foreach ($classes as $class) {
      if (isset($skin_data[$class])) {
        $attributes = array_merge($attributes, $skin_data[$class]);
      }
    }
  }
  return $attributes;
}