You are here

class Twig_Sandbox_SecurityNotAllowedFunctionError in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Sandbox/SecurityNotAllowedFunctionError.php \Twig_Sandbox_SecurityNotAllowedFunctionError

Exception thrown when a not allowed function is used in a template.

@author Martin Hasoň <martin.hason@gmail.com>

Hierarchy

Expanded class hierarchy of Twig_Sandbox_SecurityNotAllowedFunctionError

File

vendor/twig/twig/lib/Twig/Sandbox/SecurityNotAllowedFunctionError.php, line 17

View source
class Twig_Sandbox_SecurityNotAllowedFunctionError extends Twig_Sandbox_SecurityError {
  private $functionName;
  public function __construct($message, $functionName, $lineno = -1, $filename = null, Exception $previous = null) {
    parent::__construct($message, $lineno, $filename, $previous);
    $this->functionName = $functionName;
  }
  public function getFunctionName() {
    return $this->functionName;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Twig_Error::$filename protected property
Twig_Error::$lineno protected property
Twig_Error::$previous protected property
Twig_Error::$rawMessage protected property
Twig_Error::appendMessage public function
Twig_Error::getRawMessage public function Gets the raw message.
Twig_Error::getTemplateFile public function Gets the filename where the error occurred.
Twig_Error::getTemplateLine public function Gets the template line where the error occurred.
Twig_Error::guess public function
Twig_Error::guessTemplateInfo protected function @internal
Twig_Error::setTemplateFile public function Sets the filename where the error occurred.
Twig_Error::setTemplateLine public function Sets the template line where the error occurred.
Twig_Error::updateRepr protected function @internal
Twig_Error::__call public function For PHP < 5.3.0, provides access to the getPrevious() method.
Twig_Sandbox_SecurityNotAllowedFunctionError::$functionName private property
Twig_Sandbox_SecurityNotAllowedFunctionError::getFunctionName public function
Twig_Sandbox_SecurityNotAllowedFunctionError::__construct public function Constructor. Overrides Twig_Error::__construct