@@ 121-151 (lines=31) @@ | ||
118 | } |
|
119 | ||
120 | // line 15 |
|
121 | public function macro_method_link($__method__ = null, $__absolute__ = null, $__classonly__ = null, ...$__varargs__) |
|
122 | { |
|
123 | $context = $this->env->mergeGlobals(array( |
|
124 | "method" => $__method__, |
|
125 | "absolute" => $__absolute__, |
|
126 | "classonly" => $__classonly__, |
|
127 | "varargs" => $__varargs__, |
|
128 | )); |
|
129 | ||
130 | $blocks = array(); |
|
131 | ||
132 | ob_start(); |
|
133 | try { |
|
134 | // line 16 |
|
135 | echo "<a href=\""; |
|
136 | echo $this->env->getExtension('Sami\Renderer\TwigExtension')->pathForMethod($context, (isset($context["method"]) || array_key_exists("method", $context) ? $context["method"] : (function () { throw new Twig_Error_Runtime('Variable "method" does not exist.', 16, $this->getSourceContext()); })())); |
|
137 | echo "\">"; |
|
138 | // line 17 |
|
139 | echo $this->env->getExtension('Sami\Renderer\TwigExtension')->abbrClass(twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["method"]) || array_key_exists("method", $context) ? $context["method"] : (function () { throw new Twig_Error_Runtime('Variable "method" does not exist.', 17, $this->getSourceContext()); })()), "class", array())); |
|
140 | if ( !((array_key_exists("classonly", $context)) ? (_twig_default_filter((isset($context["classonly"]) || array_key_exists("classonly", $context) ? $context["classonly"] : (function () { throw new Twig_Error_Runtime('Variable "classonly" does not exist.', 17, $this->getSourceContext()); })()), false)) : (false))) { |
|
141 | echo "::"; |
|
142 | echo twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["method"]) || array_key_exists("method", $context) ? $context["method"] : (function () { throw new Twig_Error_Runtime('Variable "method" does not exist.', 17, $this->getSourceContext()); })()), "name", array()); |
|
143 | } |
|
144 | // line 18 |
|
145 | echo "</a>"; |
|
146 | ||
147 | return ('' === $tmp = ob_get_contents()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); |
|
148 | } finally { |
|
149 | ob_end_clean(); |
|
150 | } |
|
151 | } |
|
152 | ||
153 | // line 21 |
|
154 | public function macro_property_link($__property__ = null, $__absolute__ = null, $__classonly__ = null, ...$__varargs__) |
|
@@ 154-184 (lines=31) @@ | ||
151 | } |
|
152 | ||
153 | // line 21 |
|
154 | public function macro_property_link($__property__ = null, $__absolute__ = null, $__classonly__ = null, ...$__varargs__) |
|
155 | { |
|
156 | $context = $this->env->mergeGlobals(array( |
|
157 | "property" => $__property__, |
|
158 | "absolute" => $__absolute__, |
|
159 | "classonly" => $__classonly__, |
|
160 | "varargs" => $__varargs__, |
|
161 | )); |
|
162 | ||
163 | $blocks = array(); |
|
164 | ||
165 | ob_start(); |
|
166 | try { |
|
167 | // line 22 |
|
168 | echo "<a href=\""; |
|
169 | echo $this->env->getExtension('Sami\Renderer\TwigExtension')->pathForProperty($context, (isset($context["property"]) || array_key_exists("property", $context) ? $context["property"] : (function () { throw new Twig_Error_Runtime('Variable "property" does not exist.', 22, $this->getSourceContext()); })())); |
|
170 | echo "\">"; |
|
171 | // line 23 |
|
172 | echo $this->env->getExtension('Sami\Renderer\TwigExtension')->abbrClass(twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["property"]) || array_key_exists("property", $context) ? $context["property"] : (function () { throw new Twig_Error_Runtime('Variable "property" does not exist.', 23, $this->getSourceContext()); })()), "class", array())); |
|
173 | if ( !((array_key_exists("classonly", $context)) ? (_twig_default_filter((isset($context["classonly"]) || array_key_exists("classonly", $context) ? $context["classonly"] : (function () { throw new Twig_Error_Runtime('Variable "classonly" does not exist.', 23, $this->getSourceContext()); })()), true)) : (true))) { |
|
174 | echo "#"; |
|
175 | echo twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["property"]) || array_key_exists("property", $context) ? $context["property"] : (function () { throw new Twig_Error_Runtime('Variable "property" does not exist.', 23, $this->getSourceContext()); })()), "name", array()); |
|
176 | } |
|
177 | // line 24 |
|
178 | echo "</a>"; |
|
179 | ||
180 | return ('' === $tmp = ob_get_contents()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); |
|
181 | } finally { |
|
182 | ob_end_clean(); |
|
183 | } |
|
184 | } |
|
185 | ||
186 | // line 27 |
|
187 | public function macro_hint_link($__hints__ = null, ...$__varargs__) |