PageRenderTime 40ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/include/Savant/Savant2/Compiler.php

https://github.com/radicaldesigns/amp
PHP | 72 lines | 15 code | 10 blank | 47 comment | 0 complexity | 28d2718762be4e6da5dcdf554ac10723 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_Compiler 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: Compiler.php,v 1.4 2004/12/13 13:23:45 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_Compiler {
  29. /**
  30. *
  31. * Reference to the "parent" Savant object.
  32. *
  33. */
  34. var $Savant = null;
  35. /**
  36. *
  37. * Constructor.
  38. *
  39. * @access public
  40. *
  41. */
  42. function Savant2_Compiler($conf = array())
  43. {
  44. settype($conf, 'array');
  45. foreach ($conf as $key => $val) {
  46. $this->$key = $val;
  47. }
  48. }
  49. /**
  50. *
  51. * Stub method for extended behaviors.
  52. *
  53. * @access public
  54. *
  55. * @return void
  56. *
  57. */
  58. function compile($tpl)
  59. {
  60. }
  61. }
  62. ?>