[TYPO3-core] RFC: eval API (#1639)

Ingmar Schlecht ingmar at typo3.org
Sun Jan 22 20:12:38 CET 2006


Hi guys,

I've just pretty much rewritten the evalAPI code.

The patch is now much shorter, existing evaluations stay in the core, 
and the place to register own evaluations is now 
$TYPO3_CONF_VARS['SC_OPTIONS']['tce']['formevals'].

I chose 'tce' instead of 't3lib/class.t3lib_tceforms.php' as the second 
level key because the evaluations are used in both tceforms and tcemain.

The patch should be pretty much non-destructive because it only does 
something when evaluation names starting with "tx_" are called, so it 
doesn't change the way the original evaluations are handled.

It has been tested and confirmed to be working by Thomas Hempel.

I would like to commit this patch before RC1 is released on January 24.

cheers,
Ingmar


Sebastian Kurfuerst wrote:
> This is a CVS patch request.
> 
> Type: (Bugfix / New feature / Code cleanup)
> => New feature
> 
> Description:
> see http://bugs.typo3.org/view.php?id=1639
> Sometimes it would be useful to add special evaluations to be used in
> TCEforms. As an example, if the user needs a special date evaluation in
> the BE, he currently has to XCLASS the evaluations and add some custom
> JS. To make this more clean, an eval API would be nice.
> 
> Solution:
>       * currently, the JS part and the PHP part of an evaluation are
>         located in different places => difficult to maintain
>       * all built-in evaluations removed from the core and put into a
>         sysext "evaluations".
>       * new evaluations need to be added to $TYPO3_CONF_VARS['EVAL']
>       * every evaluation has a JS part and a (possible) PHP part, as
>         usual
> 
> Possible issues:
>       * the evaluations sysext is not installed by default I think, how
>         can we install it automatically on update? Maybe with the update
>         wizard?
>       * $TYPO3_CONF_VARS['EVAL'] is maybe not the right place for
>         evaluations. Suggestions?
> 
> Branches: (HEAD / TYPO3_3-8 / TYPO3_3-7)
> => HEAD
> 
> Bugtracker reference:
> => http://bugs.typo3.org/view.php?id=1639
> 
> Files:
> .patch - core patch
> _evaluations.t3x - sysext implementing the current evaluations
> _example_evaluations.t3x - example extension for a custom evaluation
> 
> The documentation is still missing, but this will be created as well.
> 
> Thanks to Thomas Hempel who provided this patch.
> 
> Greets, Sebastian
> 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: formevals-ingmar.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060122/8ba47b4b/attachment.asc 


More information about the TYPO3-team-core mailing list