3 // Copyright (C) 2011 Ken Chapple <ken@mi-squared.com>
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.
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)
26 if (class_exists($className)) {
27 $reportObject = new $className($rowRule, $patientData, $dateTarget, $options);
29 $reportObject = new NQF_Unimplemented();