if (isDefinedTest) {
RETURN_FALSE;
}
- if (!TWIG_CALL_BOOLEAN(TWIG_PROPERTY(getThis(), "env"), "isStrictVariables")) {
+ if (!TWIG_CALL_BOOLEAN(TWIG_PROPERTY(template, "env"), "isStrictVariables")) {
return;
}
/*
throw new Twig_Error_Runtime(sprintf('Item "%s" for "%s" does not exist', $item, $object));
}
*/
- if (!TWIG_CALL_BOOLEAN(TWIG_PROPERTY(getThis(), "env"), "isStrictVariables")) {
+ if (!TWIG_CALL_BOOLEAN(TWIG_PROPERTY(template, "env"), "isStrictVariables")) {
RETURN_FALSE;
}
TWIG_THROW_EXCEPTION("Twig_Error_Runtime", "Item \"%s\" for \"%s\" does not exist", item, object);
if (isDefinedTest) {
RETURN_TRUE;
}
- if (TWIG_CALL(TWIG_PROPERTY(getThis(), "env"), "hasExtension", "sandbox")) {
- TWIG_CALL(TWIG_CALL(TWIG_PROPERTY(getThis(), "env"), "getExtension", "sandbox"), "checkPropertyAllowed", object, item);
+ if (TWIG_CALL(TWIG_PROPERTY(template, "env"), "hasExtension", "sandbox")) {
+ TWIG_CALL(TWIG_CALL(TWIG_PROPERTY(template, "env"), "getExtension", "sandbox"), "checkPropertyAllowed", object, item);
}
TWIG_RETURN_OBJPROP_ELEMENT(object, item);
sprintf(tmp_method_name_is, "is%s", lsItem);
efree(lsItem);
- zval *cache = TWIG_PROPERTY(getThis(), "cache");
+ zval *cache = TWIG_PROPERTY(template, "cache");
zval *class = TWIG_PROPERTY(cache, "class");
zval *methods = TWIG_PROPERTY(class, "methods");
if (isDefinedTest) {
RETURN_FALSE;
}
- zval *env = TWIG_PROPERTY(getThis(), "env");
+ zval *env = TWIG_PROPERTY(template, "env");
if (TWIG_CALL(TWIG_PROPERTY(env, "isStrictVariables"))) {
return;
}
$this->env->getExtension('sandbox')->checkMethodAllowed($object, $method);
}
*/
- if (TWIG_CALL(TWIG_PROPERTY(getThis(), "env"), "hasExtension", "sandbox")) {
- TWIG_CALL(TWIG_CALL(TWIG_PROPERTY(getThis(), "env"), "getExtension", "sandbox"), "checkMethodAllowed", object, method);
+ if (TWIG_CALL(TWIG_PROPERTY(template, "env"), "hasExtension", "sandbox")) {
+ TWIG_CALL(TWIG_CALL(TWIG_PROPERTY(template, "env"), "getExtension", "sandbox"), "checkMethodAllowed", object, method);
}
/*
$ret = call_user_func_array(array($object, $method), $arguments);