3 * Copyright Medical Information Integration,LLC info@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
7 * of the License, or (at your option) any later version.
9 * @file FormPainMap.php
11 * @brief This file ontains the FormPainMap class, used to model the data contents of a clickmap based form.
13 /* include the class we are extending. */
14 require_once ($GLOBALS['fileroot'] . "/interface/clickmap/AbstractClickmapModel.php");
19 * @brief This class extends the AbstractClickmapModel class, to create a class for modelling the data in a pain form.
21 class FormPainMap
extends AbstractClickmapModel
{
24 * The database table to place form data in/read form data from.
28 static $TABLE_NAME = "form_painmap";
30 /* Initializer. just alles parent's initializer. */
31 function FormPainMap($id="") {
32 parent
::AbstractClickmapModel(FormPainMap
::$TABLE_NAME, $id);
36 * @brief Return the Title of the form, Useful when calling addform().
38 public function getTitle() {
39 return C_FormPainMap
::$FORM_TITLE;
43 * @brief Return the 'Code' of the form. Again, used when calling addform().
45 public function getCode() {
46 return C_FormPainMap
::$FORM_CODE;