Added ESign api and implemantion of ESign on forms and encounters
[openemr.git] / library / ESign / Abstract / Configuration.php
blob3339a079e69d9b793d05b1a26dba9fae4df7bed8
1 <?php
3 namespace ESign;
5 /**
6 * Abstract configuration class. We recommend subclassing this
7 * class for your configuration to make the default routing
8 * work properly.
9 *
10 * Copyright (C) 2013 OEMR 501c3 www.oemr.org
12 * LICENSE: This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 3
15 * of the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
23 * @package OpenEMR
24 * @author Ken Chapple <ken@mi-squared.com>
25 * @author Medical Information Integration, LLC
26 * @link http://www.open-emr.org
27 **/
29 require_once $GLOBALS['srcdir'].'/ESign/ConfigurationIF.php';
31 abstract class Abstract_Configuration implements ConfigurationIF
33 public function getLogViewMethod()
35 return "esign_log_view";
38 public function getFormViewMethod()
40 return "esign_form_view";
43 public function getFormSubmitMethod()
45 return "esign_form_submit";
48 public function getBaseUrl()
50 return $GLOBALS['webroot']."/interface/esign/index.php";
53 public function getLogViewAction()
55 return $this->getBaseUrl()."?module=".$this->getModule()."&method=".$this->getLogViewMethod();
58 public function getFormViewAction()
60 return $this->getBaseUrl()."?module=".$this->getModule()."&method=".$this->getFormViewMethod();
63 public function getFormSubmitAction()
65 return $this->getBaseUrl()."?module=".$this->getModule()."&method=".$this->getFormSubmitMethod();