Fixed quote escaping problem in view.php.
[openemr.git] / interface / forms / soap / FormSOAP.class.php
blob447aab0fbf81836f87fb4c6c858adb5250ad5898
1 <?php
3 require_once(dirname(__FILE__) . "/../../../library/classes/ORDataObject.class.php");
5 define("EVENT_VEHICLE",1);
6 define("EVENT_WORK_RELATED",2);
7 define("EVENT_SLIP_FALL",3);
8 define("EVENT_OTHER",4);
11 /**
12 * class FormHpTjePrimary
15 class FormSOAP extends ORDataObject {
17 /**
19 * @access public
23 /**
25 * static
27 var $id;
28 var $date;
29 var $pid;
30 var $user;
31 var $groupname;
32 var $authorized;
33 var $activity;
34 var $subjective;
35 var $objective;
36 var $assessment;
37 var $plan;
39 /**
40 * Constructor sets all Form attributes to their default value
43 function FormSOAP($id= "", $_prefix = "") {
44 if (is_numeric($id)) {
45 $this->id = $id;
47 else {
48 $id = "";
49 $this->date = date("Y-m-d H:i:s");
52 $this->_table = "form_soap";
53 $this->activity = 1;
54 $this->pid = $GLOBALS['pid'];
55 if ($id != "") {
56 $this->populate();
57 //$this->date = $this->get_date();
60 function populate() {
61 parent::populate();
62 //$this->temp_methods = parent::_load_enum("temp_locations",false);
65 function toString($html = false) {
66 $string .= "\n"
67 ."ID: " . $this->id . "\n";
69 if ($html) {
70 return nl2br($string);
72 else {
73 return $string;
76 function set_id($id) {
77 if (!empty($id) && is_numeric($id)) {
78 $this->id = $id;
81 function get_id() {
82 return $this->id;
84 function set_pid($pid) {
85 if (!empty($pid) && is_numeric($pid)) {
86 $this->pid = $pid;
89 function get_pid() {
90 return $this->pid;
92 function set_activity($tf) {
93 if (!empty($tf) && is_numeric($tf)) {
94 $this->activity = $tf;
97 function get_activity() {
98 return $this->activity;
101 function get_date() {
102 return $this->date;
104 function set_date($dt) {
105 if (!empty($dt)) {
106 $this->date = $dt;
109 function get_user() {
110 return $this->user;
112 function set_user($u) {
113 if(!empty($u)){
114 $this->user = $u;
117 function get_subjective() {
118 return $this->subjective;
120 function set_subjective($data) {
121 if(!empty($data)){
122 $this->subjective = $data;
125 function get_objective() {
126 return $this->objective;
128 function set_objective($data) {
129 if(!empty($data)){
130 $this->objective = $data;
133 function get_assessment() {
134 return $this->assessment;
136 function set_assessment($data) {
137 if(!empty($data)){
138 $this->assessment = $data;
141 function get_plan() {
142 return $this->plan;
144 function set_plan($data) {
145 if(!empty($data)){
146 $this->plan = $data;
150 function persist() {
151 parent::persist();
153 } // end of Form