From: fabien Date: Fri, 8 Jan 2010 14:59:14 +0000 (+0000) Subject: added some methods to Twig_Node_Include to allow better introspection X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=81f4ebea8f15308e3b12bda501bc3aa365b2790b;p=konrad%2Ftwig.git added some methods to Twig_Node_Include to allow better introspection git-svn-id: http://svn.twig-project.org/trunk@218 93ef8e89-cb99-4229-a87c-7fa0fa45744b --- diff --git a/lib/Twig/Node/Include.php b/lib/Twig/Node/Include.php index 45b62df..d32e69b 100644 --- a/lib/Twig/Node/Include.php +++ b/lib/Twig/Node/Include.php @@ -37,6 +37,21 @@ class Twig_Node_Include extends Twig_Node return get_class($this).'('.$this->expr.')'; } + public function getIncludedFile() + { + return $this->expr; + } + + public function isSandboxed() + { + return $this->sandboxed; + } + + public function getVariables() + { + return $this->variables; + } + public function compile($compiler) { if (!$compiler->getEnvironment()->hasExtension('sandbox') && $this->sandboxed)