New onsite patient portal, take 4.
[openemr.git] / portal / patient / fwk / libs / savant / Savant3 / Plugin.php
blob784d23a01010df552ffb9b697f77da2e9a4e011a
1 <?php
3 /**
4 *
5 * Abstract Savant3_Plugin class.
6 *
7 * @package Savant3
8 *
9 * @author Paul M. Jones <pmjones@ciaweb.net>
11 * @license http://www.gnu.org/copyleft/lesser.html LGPL
13 * @version $Id: Plugin.php,v 1.5 2005/04/29 16:23:50 pmjones Exp $
17 /**
19 * Abstract Savant3_Plugin class.
21 * You have to extend this class for it to be useful; e.g., "class
22 * Savant3_Plugin_example extends Savant2_Plugin". Be sure to add a
23 * method named for the plugin itself; e.g., "function example()".
25 * @package Savant3
27 * @author Paul M. Jones <pmjones@ciaweb.net>
31 abstract class Savant3_Plugin {
33 /**
35 * Reference to the calling Savant object.
37 * @access protected
39 * @var object
42 protected $Savant = null;
44 /**
46 * Constructor.
48 * @access public
50 * @param array $conf
51 * An array of configuration keys and values for
52 * this plugin.
54 * @return void
57 public function __construct($conf = null) {
58 settype ( $conf, 'array' );
59 foreach ( $conf as $key => $val ) {
60 $this->$key = $val;