Lines Matching refs:write
40 ->write(sprintf('$%s = ', $varsName))
43 ->write(sprintf("if (\$%s instanceof \\Traversable) {\n", $varsName))
45 ->write(sprintf("\$%s = iterator_to_array(\$%s);\n", $varsName, $varsName))
47 ->write("}\n")
48 ->write(sprintf("if (!is_array(\$%s)) {\n", $varsName))
50 … ->write("throw new RuntimeError('Variables passed to the \"with\" tag must be a hash.');\n")
52 ->write("}\n")
56 $compiler->write("\$context = ['_parent' => \$context];\n");
58 $compiler->write("\$context['_parent'] = \$context;\n");
61 $compiler->write(sprintf("\$context = array_merge(\$context, \$%s);\n", $varsName));
63 $compiler->write("\$context['_parent'] = \$context;\n");
68 ->write("\$context = \$context['_parent'];\n")