[TYPO3-core] RFC #16178 : add a possibility to turn off the XCLASS checking
Franz Holzinger
franz at ttproducts.de
Sat Oct 30 17:21:50 CEST 2010
This is an SVN patch request.
Type: Feature
http://bugs.typo3.org/view.php?id=16178
Branches: trunk
Problem:
The Extension Manger shall not give always an XCLASS warning message
about the PHP files in the single view of an extension. Some cases exist
where a XCLASS is not usefull.
See the similar issue "RFC #15489: remove code warnings about XCLASS and
naming annoyances" and the explanations from Ernesto Baschny there.
Solution:
Enhance the file ext_emconf.php of the extension and insert a regular
expression there for all PHP files where the XCLASS check will not be
executed.
'EMnoCheck' => 'hooks/*, *pattern* ',
Besides the big function getClassIndexLocallangFiles has been split into
2 functions.
How to test:
* Make a copy of your extension and remove the XCLASS statements at the
end of it
* Add the above example in the file ext_emconf.php and modify it.
Kind regards,
Franz
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 16178.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101030/de39d80e/attachment.txt>
More information about the TYPO3-team-core
mailing list