/** * Adds data from the renderer to the parsed code */ function _addToParsedCode(array $data) { //todo: Rework parser so this function always gets an array of tokens if ($data) { if (!is_array($data[0])) { $this->_parsedCode .= $this->_renderer->parseToken($data[0], $data[1], $data[2]); } else { foreach ($data as $dat) { $this->_parsedCode .= $this->_renderer->parseToken($dat[0], $dat[1], $dat[2]); } } } }