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 FormSnellen
extends ORDataObject
{
44 * Constructor sets all Form attributes to their default value
47 function FormSnellen($id= "", $_prefix = "") {
48 if (is_numeric($id)) {
53 $this->date
= date("Y-m-d H:i:s");
56 $this->_table
= "form_snellen";
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
;
130 function set_left_1($tf) {
133 function get_left_1() {
134 return $this->left_1
;
137 function set_left_2($tf) {
140 function get_left_2() {
141 return $this->left_2
;
145 function set_right_1($tf) {
146 $this->right_1
= $tf;
148 function get_right_1() {
149 return $this->right_1
;
152 function set_right_2($tf) {
153 $this->right_2
= $tf;
155 function get_right_2() {
156 return $this->right_2
;
162 function get_notes() {
165 function set_notes($data) {
167 $this->notes
= $data;