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