From 3c51baa4167d5a68ff010dc81525b9340c5f1329 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sat, 24 May 2014 14:45:13 +0200 Subject: Moved code into src subfolder and fixed docu --- VariableNode.php | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 VariableNode.php (limited to 'VariableNode.php') diff --git a/VariableNode.php b/VariableNode.php deleted file mode 100644 index b312e81..0000000 --- a/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-54-g00ecf