[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

/vendor/twig/twig/lib/Twig/Sandbox/ -> SecurityNotAllowedFunctionError.php (source)

   1  <?php
   2  
   3  /*
   4   * This file is part of Twig.
   5   *
   6   * (c) 2009 Fabien Potencier
   7   *
   8   * For the full copyright and license information, please view the LICENSE
   9   * file that was distributed with this source code.
  10   */
  11  
  12  /**
  13   * Exception thrown when a not allowed function is used in a template.
  14   *
  15   * @author Martin HasoĊˆ <martin.hason@gmail.com>
  16   */
  17  class Twig_Sandbox_SecurityNotAllowedFunctionError extends Twig_Sandbox_SecurityError
  18  {
  19      private $functionName;
  20  
  21      public function __construct($message, $functionName, $lineno = -1, $filename = null, Exception $previous = null)
  22      {
  23          parent::__construct($message, $lineno, $filename, $previous);
  24          $this->functionName = $functionName;
  25      }
  26  
  27      public function getFunctionName()
  28      {
  29          return $this->functionName;
  30      }
  31  }


Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1