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 FormPFSH
extends ORDataObject
{
44 * Constructor sets all Form attributes to their default value
47 function FormPFSH($id= "", $_prefix = "") {
48 if (is_numeric($id)) {
53 $this->date
= date("Y-m-d H:i:s");
56 $this->_table
= "form_pfsh";
58 $this->pid
= $GLOBALS['pid'];
61 //$this->date = $this->get_date();
66 //$this->temp_methods = parent::_load_enum("temp_locations",false);
69 function toString($html = false) {
71 ."ID: " . $this->id
. "\n";
74 return nl2br($string);
80 function set_id($id) {
81 if (!empty($id) && is_numeric($id)) {
88 function set_pid($pid) {
89 if (!empty($pid) && is_numeric($pid)) {
100 function set_date($dt) {
105 function get_user() {
108 function set_user($u) {
114 function set_activity($tf) {
115 if (!empty($tf) && is_numeric($tf)) {
116 $this->activity
= $tf;
119 function get_activity() {
120 return $this->activity
;
123 function get_past() {
126 function set_past($data) {
132 function get_family() {
133 return $this->family
;
135 function set_family($data) {
137 $this->family
= $data;
141 function get_social() {
142 return $this->social
;
144 function set_social($data) {
146 $this->social
= $data;