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