2 /** @package Openemr::Model::DAO */
6 * Copyright (C) 2016-2017 Jerry Padgett <sjpadgett@gmail.com>
8 * LICENSE: This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Affero General Public License as
10 * published by the Free Software Foundation, either version 3 of the
11 * License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Affero General Public License for more details.
18 * You should have received a copy of the GNU Affero General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22 * @author Jerry Padgett <sjpadgett@gmail.com>
23 * @link http://www.open-emr.org
26 /** import supporting libraries */
27 require_once("verysimple/Phreeze/IDaoMap.php");
28 require_once("verysimple/Phreeze/IDaoMap2.php");
31 * OnsitePortalActivityMap is a static class with functions used to get FieldMap and KeyMap information that
32 * is used by Phreeze to map the OnsitePortalActivityDAO to the onsite_portal_activity datastore.
34 * WARNING: THIS IS AN AUTO-GENERATED FILE
36 * This file should generally not be edited by hand except in special circumstances.
37 * You can override the default fetching strategies for KeyMaps in _config.php.
38 * Leaving this file alone will allow easy re-generation of all DAOs in the event of schema changes
40 * @package Openemr::Model::DAO
41 * @author ClassBuilder
44 class OnsitePortalActivityMap
implements IDaoMap
, IDaoMap2
53 public static function AddMap($property, FieldMap
$map)
56 self
::$FM[$property] = $map;
62 public static function SetFetchingStrategy($property, $loadType)
65 self
::$KM[$property]->LoadType
= $loadType;
71 public static function GetFieldMaps()
73 if (self
::$FM == null) {
75 self
::$FM["Id"] = new FieldMap("Id", "onsite_portal_activity", "id", true, FM_TYPE_BIGINT
, 20, null, true);
76 self
::$FM["Date"] = new FieldMap("Date", "onsite_portal_activity", "date", false, FM_TYPE_DATETIME
, null, null, false);
77 self
::$FM["PatientId"] = new FieldMap("PatientId", "onsite_portal_activity", "patient_id", false, FM_TYPE_BIGINT
, 20, null, false);
78 self
::$FM["Activity"] = new FieldMap("Activity", "onsite_portal_activity", "activity", false, FM_TYPE_VARCHAR
, 255, null, false);
79 self
::$FM["RequireAudit"] = new FieldMap("RequireAudit", "onsite_portal_activity", "require_audit", false, FM_TYPE_TINYINT
, 1, "1", false);
80 self
::$FM["PendingAction"] = new FieldMap("PendingAction", "onsite_portal_activity", "pending_action", false, FM_TYPE_VARCHAR
, 255, null, false);
81 self
::$FM["ActionTaken"] = new FieldMap("ActionTaken", "onsite_portal_activity", "action_taken", false, FM_TYPE_VARCHAR
, 255, null, false);
82 self
::$FM["Status"] = new FieldMap("Status", "onsite_portal_activity", "status", false, FM_TYPE_VARCHAR
, 255, null, false);
83 self
::$FM["Narrative"] = new FieldMap("Narrative", "onsite_portal_activity", "narrative", false, FM_TYPE_LONGTEXT
, null, null, false);
84 self
::$FM["TableAction"] = new FieldMap("TableAction", "onsite_portal_activity", "table_action", false, FM_TYPE_LONGTEXT
, null, null, false);
85 self
::$FM["TableArgs"] = new FieldMap("TableArgs", "onsite_portal_activity", "table_args", false, FM_TYPE_LONGTEXT
, null, null, false);
86 self
::$FM["ActionUser"] = new FieldMap("ActionUser", "onsite_portal_activity", "action_user", false, FM_TYPE_INT
, 11, null, false);
87 self
::$FM["ActionTakenTime"] = new FieldMap("ActionTakenTime", "onsite_portal_activity", "action_taken_time", false, FM_TYPE_DATETIME
, null, null, false);
88 self
::$FM["Checksum"] = new FieldMap("Checksum", "onsite_portal_activity", "checksum", false, FM_TYPE_LONGTEXT
, null, null, false);
97 public static function GetKeyMaps()
99 if (self
::$KM == null) {