[TYPO3-core] RFC: #4133 / accesskey for TMENU
Martin Kutschker
Martin.Kutschker at n0spam-blackbox.net
Fri Sep 8 09:32:07 CEST 2006
Michael Stucki schrieb:
> Wolfgang Klinger wrote:
>
>
>> This is a patch request (trunk).
>> Bugtracker: http://bugs.typo3.org/view.php?id=4133
>>
>> Problem: no automatic handling of the "accesskey" attribute for TMENU
>> objects
>>
>> Solution: the attached patch
>
>
> OT, just wondering:
>
> + // Set access key
> + if ($this->mconf['accessKey']) {
> + $this->I['accessKey'] = $this->accessKey($this->I['title']);
> + } else {
> + $this->I['accessKey']=Array();
> + }
>
> Why is Array (it's just a normal function) spelled with upper-case A so
> often? I know that this is written so often inside TYPO3 that you probably
> just copied it. But I think that lower-case would look more like a PHP
> function...
I think the idea is that Array() is used as a constructor without "new".
And usually you spell "new Class()" not "new class()".
Masi
More information about the TYPO3-team-core
mailing list