psr12 fixes for new PHP_CodeSniffer (#4795)
[openemr.git] / portal / patient / fwk / libs / savant / Savant3 / Plugin.php
blob368647418032df3d4ec82173713b6c7e1ba2e87f
1 <?php
3 /**
5 * Abstract Savant3_Plugin class.
7 * @package Savant3
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)
59 settype($conf, 'array');
60 foreach ($conf as $key => $val) {
61 $this->$key = $val;