[TYPO3-core] RFC: #6829 - New general template-class usable for FE+BE

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Sun Nov 25 22:31:28 CET 2007


Steffen Kamper schrieb:
> Hi,
> 
> "Ingmar Schlecht" <ingmar at typo3.org> schrieb im Newsbeitrag 
> news:mailman.1.1196002000.24558.typo3-team-core at lists.netfielders.de...
>> +1 based on reading.
>>
>> cheers
>> Ingmar
>>
> 
> i made a little cleaning: removed rest, added braces and a better condition 
> for wrap

<nitpicking>Then you should have used $a = $b instead of $a=$b in the 
patch.</nitpicking>

PHP 5.1 question:

Can we turn this

substituteMarkerArray($content, $markContentArray,
                       $wrap='',$uppercase=0){	
   if (is_array($markContentArray)) {
   ...
   }
}

into that?

substituteMarkerArray($content, array $markContentArray,
                       $wrap='',$uppercase=0){	
}

That is use type hinting instead of checking for the type.

Masi


More information about the TYPO3-team-core mailing list