Highway to PSR2
[openemr.git] / interface / forms / painmap / FormPainMap.php
blob284d0d092d533690c542cd43d5d9978b11597a40
1 <?php
2 /*
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");
16 /**
17 * @class FormPainMap
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 /**
25 * The database table to place form data in/read form data from.
27 * @var TABLE_NAME
29 static $TABLE_NAME = "form_painmap";
31 /* Initializer. just alles parent's initializer. */
32 function FormPainMap($id = "")
34 parent::AbstractClickmapModel(FormPainMap::$TABLE_NAME, $id);
37 /**
38 * @brief Return the Title of the form, Useful when calling addform().
40 public function getTitle()
42 return C_FormPainMap::$FORM_TITLE;
45 /**
46 * @brief Return the 'Code' of the form. Again, used when calling addform().
48 public function getCode()
50 return C_FormPainMap::$FORM_CODE;