You are viewing a plain text version of this content. The canonical link for it is here.
Posted to zeta-issues@incubator.apache.org by "Tobias Schlitt (JIRA)" <ji...@apache.org> on 2011/01/23 22:02:43 UTC
[jira] Resolved: (ZETACOMP-43) Template function with only optional
parameters cannot be defined
[ https://issues.apache.org/jira/browse/ZETACOMP-43?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tobias Schlitt resolved ZETACOMP-43.
------------------------------------
Resolution: Fixed
Assignee: Tobias Schlitt
Fixed in rev. #1062540.
> Template function with only optional parameters cannot be defined
> -----------------------------------------------------------------
>
> Key: ZETACOMP-43
> URL: https://issues.apache.org/jira/browse/ZETACOMP-43
> Project: Zeta Components
> Issue Type: Bug
> Components: Template
> Reporter: Tobias Schlitt
> Assignee: Tobias Schlitt
>
> Defining a (internal) template function which does only have optional parameters cannot be defined. For example the following definition snippet would need this to make PHPs date_create() function (DateTime) available:
> <code>
> case "date_create":
> return array(
> array( "[%time]", "[%timezone]" ),
> self::functionCall(
> "date_create",
> array( "[%time]", "[%timezone]" )
> )
> );
> </code>
> The Template component recognizes the exposed function to not accept parameters at all and throws an exception.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.