You are here

public function RendererBase::mergedAttributes in Forena Reports 8

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

8 calls to RendererBase::mergedAttributes()
FrxAjax::render in src/FrxPlugin/Renderer/FrxAjax.php
Default Render action, which simply does normal forena rendering. You can use renderDomNode at any time to generate the default forena rendering methods.
FrxCrosstab::render in src/FrxPlugin/Renderer/FrxCrosstab.php
Render the crosstab
FrxInclude::render in src/FrxPlugin/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.
FrxMenu::render in src/FrxPlugin/Renderer/FrxMenu.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/FrxPlugin/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.

... See full list

File

src/FrxPlugin/Renderer/RendererBase.php, line 475
FrxRenderer.php Base class for FrxAPI custom Renderer @author davidmetzler

Class

RendererBase
Crosstab Renderer

Namespace

Drupal\forena\FrxPlugin\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 = $this
    ->getDataContext('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;
}