_plugin_exists($function, "function")) { $_args = $object->_parse_arguments($arguments); foreach($_args as $key => $value) { if (is_bool($value)) { $value = $value ? 'true' : 'false'; } elseif (is_null($value)) { $value = 'null'; } elseif ($value[0] != '$' && $value[0] != '"') { $value = '"'.addslashes($value).'"'; } $_args[$key] = "'$key' => $value"; } if (is_array($function)) { if (!is_string($function[0])) { throw new Template_Exception("Unsupported callback."); } $function = implode('::', $function); } $_result = '_parse_modifier($function . '(array(' . implode(',', (array)$_args) . '), $this)', $modifiers) . '; '; } else { $_result .= $function . '(array(' . implode(',', (array)$_args) . '), $this);'; } $_result .= '?>'; return true; } else { return false; } } ?>