[TYPO3-50-general] Package Key Guidelines
j.rau at web.de
Mon May 5 14:12:31 CEST 2008
> I do not know why you wish to change the specification from the 4.x
> branch but the spec (http://typo3.org/extensions/extension-keys/) has
> some good points I think:
> * Avoid underscores
> * All in lowercase
IMO the naming conventions of FLOW3
are very well thought and are already woven into the code of FLOW3.
But there is a method called "getCaseSensitiveComponentName" in the
F3_Comonent_Manager that can handle lowercase keys.
> I would add that number should not be allowed alone but only together
> with at least a letter. Thus I would say something like
> would be a starting point
IMO the package key is only the second part of a class/component name, e.g.
and must be in UpperCamelCase. To test a package key I suggest
To match the entire class/component name i suggest
because every class name must start with F3_. In addition to the CGL the
RegEx only matches (sub)names with 2 chars.
matches also names like this
> a good testing facility for RegEx can be found here:
> > http://www.regex-tester.de/regex.html
> This tool is easier to use I think:
This tool is really simple to use. But ist utilizes the JAVA Library
which differs a bit from the PCRE Library used in PHP5.x. With the
suggested tool www.regex-tester.de you can save your tests and have more
More information about the TYPO3-project-5_0-general