public function FrxRenderer::mergedAttributes in Forena Reports 7.3
Same name and namespace in other branches
- 6.2 FrxRenderer.inc \FrxRenderer::mergedAttributes()
- 7.2 FrxRenderer.inc \FrxRenderer::mergedAttributes()
- 7.4 renderers/FrxRenderer.inc \FrxRenderer::mergedAttributes()
Standard php array containing merged attributes Enter description here ...
2 calls to FrxRenderer::mergedAttributes()
- FrxChart::render in renderers/
FrxChart.inc - FrxInclude::render in renderers/
FrxInclude.inc
File
- ./
FrxRenderer.inc, line 76 - FrxRenderer.inc Base class for Frx custom renderers @author davidmetzler
Class
- FrxRenderer
- @file FrxRenderer.inc Base class for Frx custom renderers @author davidmetzler
Code
public function mergedAttributes() {
$attributes = array();
if (isset($this->frxAttributes)) {
foreach ($this->frxAttributes as $key => $data) {
FrxRenderer::addAttributes($attributes, $key, $data);
}
}
if (isset($this->htmlAttributes)) {
foreach ($this->htmlAttributes as $key => $data) {
FrxRenderer::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;
}