Task #24551
Adhere to CGL: t3lib_div::getUrl() instead of t3lib_div::getURL()
| Status: | Closed | Start date: | 2011-01-13 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Ernesto Baschny | % Done: | 100% |
|
| Category: | - | |||
| Target version: | 4.6.0-beta1 | |||
| TYPO3 Version: | 4.6 | Complexity: | ||
| PHP Version: | 5.3 | |||
| Votes: | 0 |
Description
Even though the case is not important in PHP I think it's a matter of consistency to call it the right way. This also makes it easier for people like me who use a case-sensitive search in their editor to find the right functions…
The patches are splitted because they affect different subprojects…
(issue imported from #M17008)
Associated revisions
[TASK] Adhere to CGL: t3lib_div::getUrl() instead of t3lib_div::getURL()
Change-Id: If9ad418a4a70985cd661d1dd9c6f07498e833d95
Resolves: #24551
Releases: 4.6
Reviewed-on: http://review.typo3.org/3111
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
History
Updated by Ernesto Baschny over 2 years ago
This is discussion-worthy. The CGL says CamelCase should also be done for acronyms like "URL" should also be CamelCases. So according to the CGL, "getUrl" is ok. Which is probably why new code is using this syntax.
So it might be worth thinking about changing t3lib_div to "getUrl()". What do you think? I'll throw the discussion in the core team. Thanks!
Updated by Andreas Lappe over 2 years ago
I attached the other way around…
Updated by Ernesto Baschny almost 2 years ago
- Assignee set to Ernesto Baschny
- Target version changed from 0 to 4.6.0-beta1
Updated by Ernesto Baschny almost 2 years ago
- Tracker changed from Bug to Task
- Subject changed from t3lib_div::getURL() gets called as t3lib_div::getUrl() to Adhere to CGL: t3lib_div::getUrl() instead of t3lib_div::getURL()
- Status changed from New to Accepted
- TYPO3 Version changed from 4.5 to 4.6
Updated by Mr. Hudson almost 2 years ago
Patch set 1 of change If9ad418a4a70985cd661d1dd9c6f07498e833d95 has been pushed to the review server.
It is available at http://review.typo3.org/3111
Updated by Ernesto Baschny almost 2 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset 196503967fb2d7184b1d3447a8c5a9b9ff82a21d.
Updated by Xavier Perseguers about 1 year ago
- Status changed from Resolved to Closed