From 81f4ebea8f15308e3b12bda501bc3aa365b2790b Mon Sep 17 00:00:00 2001 From: fabien Date: Fri, 8 Jan 2010 14:59:14 +0000 Subject: [PATCH] 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 --- lib/Twig/Node/Include.php | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) 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) -- 1.7.2.5