Highway to PSR2
[openemr.git] / library / classes / rulesets / Cqm / CqmReportFactory.php
blobecbb51ba8e72242bf6cae1f84b01e0b02eba794a
1 <?php
2 // Copyright (C) 2011 Ken Chapple <ken@mi-squared.com>
3 //
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (at your option) any later version.
8 //
9 class CqmReportFactory extends RsReportFactoryAbstract
11 public function __construct()
13 foreach (glob(dirname(__FILE__)."/library/*.php") as $filename) {
14 require_once($filename);
17 foreach (glob(dirname(__FILE__)."/reports/*.php") as $filename) {
18 require_once($filename);
22 public function createReport($className, $rowRule, $patientData, $dateTarget, $options)
24 $reportObject = null;
25 if (class_exists($className)) {
26 $reportObject = new $className( $rowRule, $patientData, $dateTarget, $options );
27 } else {
28 $reportObject = new NFQ_Unimplemented();
31 return $reportObject;