6 * @link http://www.open-emr.org
7 * @author Matthew Vita <matthewvita48@gmail.com>
8 * @copyright Copyright (c) 2018 Matthew Vita <matthewvita48@gmail.com>
9 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
13 namespace OpenEMR\Services
;
19 * Default constructor.
21 public function __construct()
25 public function getAll()
33 WHERE authorized = 1 AND active = 1";
35 $statementResults = sqlStatement($sql);
38 while ($row = sqlFetchArray($statementResults)) {
39 array_push($results, $row);
45 public function getById($id)
53 WHERE authorized = 1 AND active = 1 AND id = ?";
55 return sqlQuery($sql, $id);