Highway to PSR2
[openemr.git] / portal / patient / libs / Model / DAO / OnsitePortalActivityMap.php
blobc94837c6f6fed80c1e4f256525c19d19ec517ae8
1 <?php
2 /** @package Openemr::Model::DAO */
4 /**
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/>.
21 * @package OpenEMR
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");
30 /**
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
42 * @version 1.0
44 class OnsitePortalActivityMap implements IDaoMap, IDaoMap2
47 private static $KM;
48 private static $FM;
50 /**
51 * {@inheritdoc}
53 public static function AddMap($property, FieldMap $map)
55 self::GetFieldMaps();
56 self::$FM[$property] = $map;
59 /**
60 * {@inheritdoc}
62 public static function SetFetchingStrategy($property, $loadType)
64 self::GetKeyMaps();
65 self::$KM[$property]->LoadType = $loadType;
68 /**
69 * {@inheritdoc}
71 public static function GetFieldMaps()
73 if (self::$FM == null) {
74 self::$FM = array();
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);
91 return self::$FM;
94 /**
95 * {@inheritdoc}
97 public static function GetKeyMaps()
99 if (self::$KM == null) {
100 self::$KM = array();
103 return self::$KM;