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 FormLegLength
extends ORDataObject
{
55 * Constructor sets all Form attributes to their default value
58 function FormLegLength($id= "", $_prefix = "") {
59 if (is_numeric($id)) {
64 $this->date
= date("Y-m-d H:i:s");
67 $this->_table
= "form_leg_length";
69 $this->pid
= $GLOBALS['pid'];
72 //$this->date = $this->get_date();
77 //$this->temp_methods = parent::_load_enum("temp_locations",false);
80 function toString($html = false) {
82 ."ID: " . $this->id
. "\n";
85 return nl2br($string);
91 function set_id($id) {
92 if (!empty($id) && is_numeric($id)) {
99 function set_pid($pid) {
100 if (!empty($pid) && is_numeric($pid)) {
108 function get_date() {
111 function set_date($dt) {
116 function get_user() {
119 function set_user($u) {
125 function set_activity($tf) {
126 if (!empty($tf) && is_numeric($tf)) {
127 $this->activity
= $tf;
130 function get_activity() {
131 return $this->activity
;
140 function get_AE_left() {
141 return $this->AE_left
;
143 function set_AE_left($tf) {
145 $this->AE_left
= $tf;
148 function get_AE_right() {
149 return $this->AE_right
;
152 function set_AE_right($tf) {
154 $this->AE_right
= $tf;
157 function get_BE_left() {
158 return $this->BE_left
;
161 function set_BE_left($tf) {
163 $this->BE_left
= $tf;
166 function get_BE_right() {
167 return $this->BE_right
;
170 function set_BE_right($tf) {
172 $this->BE_right
= $tf;
175 function get_AK_left() {
176 return $this->AK_left
;
178 function set_AK_left($tf) {
180 $this->AK_left
= $tf;
183 function get_AK_right() {
184 return $this->AK_right
;
186 function set_AK_right($tf) {
188 $this->AK_right
= $tf;
191 function get_K_left() {
192 return $this->K_left
;
195 function set_K_left($tf) {
200 function get_K_right() {
201 return $this->K_right
;
204 function set_K_right($tf) {
206 $this->K_right
= $tf;
209 function get_BK_left() {
210 return $this->BK_left
;
213 function set_BK_left($tf) {
215 $this->BK_left
= $tf;
218 function get_BK_right() {
219 return $this->BK_right
;
222 function set_BK_right($tf) {
224 $this->BK_right
= $tf;
227 function get_ASIS_left() {
228 return $this->ASIS_left
;
231 function set_ASIS_left($tf) {
233 $this->ASIS_left
= $tf;
236 function get_ASIS_right() {
237 return $this->ASIS_right
;
240 function set_ASIS_right($tf) {
242 $this->ASIS_right
= $tf;
245 function get_UMB_left() {
246 return $this->UMB_left
;
249 function set_UMB_left($tf) {
251 $this->UMB_left
= $tf;
254 function get_UMB_right() {
255 return $this->UMB_right
;
258 function set_UMB_right($tf) {
260 $this->UMB_right
= $tf;
267 function get_notes() {
270 function set_notes($data) {
272 $this->notes
= $data;