Extension.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /*
  3. * This file is part of Twig.
  4. *
  5. * (c) 2009 Fabien Potencier
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. abstract class Twig_Extension implements Twig_ExtensionInterface
  11. {
  12. /**
  13. * {@inheritdoc}
  14. *
  15. * @deprecated since 1.23 (to be removed in 2.0), implement Twig_Extension_InitRuntimeInterface instead
  16. */
  17. public function initRuntime(Twig_Environment $environment)
  18. {
  19. }
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public function getTokenParsers()
  24. {
  25. return array();
  26. }
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public function getNodeVisitors()
  31. {
  32. return array();
  33. }
  34. /**
  35. * {@inheritdoc}
  36. */
  37. public function getFilters()
  38. {
  39. return array();
  40. }
  41. /**
  42. * {@inheritdoc}
  43. */
  44. public function getTests()
  45. {
  46. return array();
  47. }
  48. /**
  49. * {@inheritdoc}
  50. */
  51. public function getFunctions()
  52. {
  53. return array();
  54. }
  55. /**
  56. * {@inheritdoc}
  57. */
  58. public function getOperators()
  59. {
  60. return array();
  61. }
  62. /**
  63. * {@inheritdoc}
  64. *
  65. * @deprecated since 1.23 (to be removed in 2.0), implement Twig_Extension_GlobalsInterface instead
  66. */
  67. public function getGlobals()
  68. {
  69. return array();
  70. }
  71. }