[TYPO3-core] stdWrap implementing php-functions?
Jigal van Hemert
jigal at xs4all.nl
Thu Jul 14 11:49:11 CEST 2011
Hi,
On 13-7-2011 19:31, Tolleiv Nietsch wrote:
> But wouldn't it make more sense to go a more generic way and provide
> something like "stdWrap.php.<functionName>" and encapsulate all the
> native stuff there (whitelisted of course) ?
Most PHP functions cannot be used directly in TS. They need processing
of extra or optional parameters, checks for the right values or TYPO3
specific implementations because of character set handling / HTML
support, etc.
An extra "php" property would not improve TS. PHP doesn't mean a lot to
many TS users. Some PHP-like functions would then be available directly
in stdWrap, others in the php property/group.
If you like to add a lot of PHP function you could make an RFC for a
bulk of new properties. To improve the handling you could create a new
'functionType' for the stdWrapOrder array and handle these stdWrap
properties in one or a few methods.
Whitelisting already requires that you consider each php function for
its "usefulness". stdWrapOrder is in itself a kind of whitelist.
When it comes to just adding all possible PHP functions just because we
can, it almost sounds like bloating this part of TYPO3 with
functionality which may not be useful at all but has to be supported
(both for deprecation and security) in the future.
In short: I would go for making a list of useful functions and see if
they can be incorporated by using some functionType to handle them easily.
--
Kind regards / met vriendelijke groet,
Jigal van Hemert.
More information about the TYPO3-team-core
mailing list