You are here

class Twig_Sandbox_SecurityNotAllowedTagError in Zircon Profile 8

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

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

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

Hierarchy

Expanded class hierarchy of Twig_Sandbox_SecurityNotAllowedTagError

File

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

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

}

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_SecurityNotAllowedTagError::$tagName private property
Twig_Sandbox_SecurityNotAllowedTagError::getTagName public function
Twig_Sandbox_SecurityNotAllowedTagError::__construct public function Constructor. Overrides Twig_Error::__construct