[TYPO3-core] RFC: Feature #10985: Conversion from camelcase to underscores, and back

Martin Kutschker masi-no at spam-typo3.org
Sun Apr 26 18:57:35 CEST 2009


Sebastian KurfŸürst schrieb:
> This is an SVN patch request.
> 
> Type: Feature
> 
> BT Reference: http://bugs.typo3.org/view.php?id=10985
> 
> Branch: trunk
> 
> Problem:
> With Extbase, we introduced a new naming convention for extensions.
> Example: The extension with key "blog_example" will have Tx_BlogExample
> as prefix for all PHP classes. We need some way to convert between
> camelcased and underscored versions - that's what this patch provides in
> t3lib_div.

You want to distinguish blog_example from blogexample, right? They ould
become Tx_BlogExample and Tx_Blogexamle, correct? Fine with me, except
for the prefix. Classes tend to have a small first letter in v4, at
least all the prefixes. I would like to have no change there. See it as
a cultural thing.

But tx_BlogExample and t3lib_FooBar are fine with me.

Besides that: please use t3lib_div::strtolower and t3lib_div::strtoupper.

Masi


More information about the TYPO3-team-core mailing list