PageRenderTime 44ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/include/Savant/Savant2/Plugin.php

https://github.com/radicaldesigns/amp
PHP | 74 lines | 15 code | 10 blank | 49 comment | 0 complexity | 91dfb2cb1eab21b2fde688aa40b6e1de MD5 | raw file
Possible License(s): LGPL-2.1, GPL-2.0, BSD-3-Clause, LGPL-2.0, CC-BY-SA-3.0, AGPL-1.0
  1. <?php
  2. /**
  3. *
  4. * Abstract Savant2_Plugin class.
  5. *
  6. * You have to extend this class for it to be useful; e.g., "class
  7. * Savant2_Plugin_example extends Savant2_Plugin".
  8. *
  9. * $Id: Plugin.php,v 1.1 2004/10/04 01:52:23 pmjones Exp $
  10. *
  11. * @author Paul M. Jones <pmjones@ciaweb.net>
  12. *
  13. * @package Savant2
  14. *
  15. * @license http://www.gnu.org/copyleft/lesser.html LGPL
  16. *
  17. * This program is free software; you can redistribute it and/or modify
  18. * it under the terms of the GNU Lesser General Public License as
  19. * published by the Free Software Foundation; either version 2.1 of the
  20. * License, or (at your option) any later version.
  21. *
  22. * This program is distributed in the hope that it will be useful, but
  23. * WITHOUT ANY WARRANTY; without even the implied warranty of
  24. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  25. * Lesser General Public License for more details.
  26. *
  27. */
  28. class Savant2_Plugin {
  29. /**
  30. *
  31. * Optional reference to the calling Savant object.
  32. *
  33. * @var object
  34. *
  35. */
  36. var $Savant = null;
  37. /**
  38. *
  39. * Constructor.
  40. *
  41. * @access public
  42. *
  43. */
  44. function Savant2_Plugin($conf = array())
  45. {
  46. settype($conf, 'array');
  47. foreach ($conf as $key => $val) {
  48. $this->$key = $val;
  49. }
  50. }
  51. /**
  52. *
  53. * Stub method for extended behaviors.
  54. *
  55. * @access public
  56. *
  57. * @return void
  58. *
  59. */
  60. function plugin()
  61. {
  62. }
  63. }
  64. ?>