another thing related to development version incrementation
[openemr.git] / interface / forms / prior_auth / FormPriorAuth.class.php
blobf84ae4b1d780177d0ebc4ddac2aa2f7c3430a61a
1 <?php
3 require_once(dirname(__FILE__) . "/../../../library/classes/ORDataObject.class.php");
7 /**
8 * class PriorAuth
11 class FormPriorAuth extends ORDataObject {
13 /**
15 * @access public
20 /**
22 * @access private
25 var $id;
26 var $date;
27 var $pid;
28 var $activity;
29 var $prior_auth_number;
30 var $comments;
33 /**
34 * Constructor sets all Form attributes to their default value
37 function FormPriorAuth($id= "", $_prefix = "") {
38 if (is_numeric($id)) {
39 $this->id = $id;
41 else {
42 $id = "";
44 $this->_table = "form_prior_auth";
45 $this->date = date("Y-m-d H:i:s");
46 $this->activity = 1;
47 $this->pid = $GLOBALS['pid'];
48 $this->prior_auth_number = "";
49 if ($id != "") {
50 $this->populate();
54 function toString($html = false) {
55 $string .= "\n"
56 ."ID: " . $this->id . "\n";
58 if ($html) {
59 return nl2br($string);
61 else {
62 return $string;
65 function set_id($id) {
66 if (!empty($id) && is_numeric($id)) {
67 $this->id = $id;
70 function get_id() {
71 return $this->id;
73 function set_pid($pid) {
74 if (!empty($pid) && is_numeric($pid)) {
75 $this->pid = $pid;
78 function get_pid() {
79 return $this->pid;
81 function set_activity($tf) {
82 if (!empty($tf) && is_numeric($tf)) {
83 $this->activity = $tf;
86 function get_activity() {
87 return $this->activity;
91 function set_comments($string) {
92 $this->comments = $string;
95 function get_comments() {
96 return $this->comments;
99 function set_prior_auth_number($string) {
100 $this->prior_auth_number = $string;
103 function get_prior_auth_number() {
104 return $this->prior_auth_number;
108 function get_date() {
109 return $this->date;
113 } // end of Form