2 // Copyright (C) 2009 Aron Racho <aron@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
8 require_once(dirname(__FILE__
) . "/../../../library/classes/ORDataObject.class.php");
10 define("EVENT_VEHICLE",1);
11 define("EVENT_WORK_RELATED",2);
12 define("EVENT_SLIP_FALL",3);
13 define("EVENT_OTHER",4);
17 * class FormHpTjePrimary
20 class FormMDAssessment
extends ORDataObject
{
42 * Constructor sets all Form attributes to their default value
45 function FormMDAssessment($id= "", $_prefix = "") {
46 if (is_numeric($id)) {
51 $this->date
= date("Y-m-d H:i:s");
54 $this->_table
= "form_md_assessment";
56 $this->pid
= $GLOBALS['pid'];
59 //$this->date = $this->get_date();
64 //$this->temp_methods = parent::_load_enum("temp_locations",false);
67 function toString($html = false) {
69 ."ID: " . $this->id
. "\n";
72 return nl2br($string);
78 function set_id($id) {
79 if (!empty($id) && is_numeric($id)) {
86 function set_pid($pid) {
87 if (!empty($pid) && is_numeric($pid)) {
98 function set_date($dt) {
103 function get_user() {
106 function set_user($u) {
112 function set_activity($tf) {
113 if (!empty($tf) && is_numeric($tf)) {
114 $this->activity
= $tf;
117 function get_activity() {
118 return $this->activity
;
121 function get_assessment() {
122 return $this->assessment
;
124 function set_assessment($data) {
126 $this->assessment
= $data;
130 function get_plan() {
133 function set_plan($data) {