From d48be01fff31a7a9d611802721aa70532d251c3a Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sat, 24 May 2014 14:55:11 +0200 Subject: Moved to src/ste for psr-4 compliance --- src/VariableNode.php | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/VariableNode.php (limited to 'src/VariableNode.php') diff --git a/src/VariableNode.php b/src/VariableNode.php deleted file mode 100644 index b312e81..0000000 --- a/src/VariableNode.php +++ /dev/null @@ -1,25 +0,0 @@ -vars[' . (is_numeric($this->name) ? $this->name : '"' . Misc::escape_text($this->name) . '"'). ']'; - foreach($this->arrayfields as $af) { - if((count($af) == 1) and ($af[0] instanceof TextNode) and is_numeric($af[0]->text)) { - $varaccess .= '[' . $af->text . ']'; - } else { - $varaccess .= '[' . implode(".", array_map(function($node) { - if($node instanceof TextNode) { - return "\"" . Misc::escape_text($node->text) . "\""; - } else if($node instanceof VariableNode) { - return $node->transcompile(); - } - }, $af)). ']'; - } - } - return $varaccess; - } -} -- cgit v1.2.3-70-g09d2