Re: Re: QuickForm2: messages and translations
| From: | Alexey Borzov | Date: | Sat, 21 May 2011 18:39:24 +0000 |
| Subject: | Re: Re: QuickForm2: messages and translations | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-54292@lists.php.net to get a copy of this message | ||
Hi Christian,
On 19.05.2011 9:34, Christian Weiske wrote:
Fair enough, made it possible to pass a callback as message provider. I think that wraps it... Expect a new release soon. :]It'd only free one from having a hard defined method name, nothing more.By the way, this reminds me of specifying a callback instead of the message provider object - the method naming problem does not exist there.I think this will only work with PHP 5.3 and closures, as callback will need to keep some state (i.e. messages it is going to return). You definitely can instantiate an object and pass its method as a callback, but then why not pass the whole object instead?