PageRenderTime 41ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/Twig/Node/Flush.php

http://github.com/fabpot/Twig
PHP | 31 lines | 15 code | 3 blank | 13 comment | 0 complexity | acb284a051470a1fec1e7038a339a101 MD5 | raw file
Possible License(s): BSD-3-Clause, BSD-2-Clause
  1. <?php
  2. /*
  3. * This file is part of Twig.
  4. *
  5. * (c) 2011 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. /**
  11. * Represents a flush node.
  12. *
  13. * @author Fabien Potencier <fabien@symfony.com>
  14. */
  15. class Twig_Node_Flush extends Twig_Node
  16. {
  17. public function __construct($lineno, $tag)
  18. {
  19. parent::__construct(array(), array(), $lineno, $tag);
  20. }
  21. public function compile(Twig_Compiler $compiler)
  22. {
  23. $compiler
  24. ->addDebugInfo($this)
  25. ->write("flush();\n")
  26. ;
  27. }
  28. }