public static function Frx::Controls in Forena Reports 7.3
Same name and namespace in other branches
- 7.5 Frx.inc \Frx::Controls()
- 7.4 Frx.inc \Frx::Controls()
3 calls to Frx::Controls()
- FrxReport::render_section in ./
FrxReport.inc - Recursive report renderer Walks the nodes rendering the report.
- FrxReportGenerator::get_formatter in ./
FrxReportGenerator.inc - Load the formatters for all initialized repositories.
- FrxReportGenerator::supported_formats in ./
FrxReportGenerator.inc
File
- ./
Frx.inc, line 125 - Frx.incL General Forena Reporting Class
Class
Code
public static function Controls($class = '') {
static $instances = '';
static $classes = '';
if (!$instances) {
$classes = FrxReportGenerator::instance()->app
->controls();
foreach ($classes as $c) {
if ($c['file']) {
include_once $c['file'];
if (class_exists($c['class'])) {
$instances[$c['class']] = new $c['class']();
}
}
}
}
if ($class) {
return @$instances[$class];
}
return $instances;
}