PageRenderTime 35ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/include/Savant/Savant2/Filter.php

https://github.com/radicaldesigns/amp
PHP | 76 lines | 15 code | 10 blank | 51 comment | 0 complexity | 815535afa2580caf25717557d6c60c7e 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_Filter class.
  5. *
  6. * You have to extend this class for it to be useful; e.g., "class
  7. * Savant2_Filter_example extends Savant2_Filter".
  8. *
  9. * $Id: Filter.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_Filter {
  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_Filter($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. * @param string &$text The text to filter.
  58. *
  59. * @return void
  60. *
  61. */
  62. function filter(&$text)
  63. {
  64. }
  65. }
  66. ?>