Project

General

Profile

Actions

Task #68748

closed

Wording: Rename AbstractContentObject->getContentObject() to getContentObjectRenderer()

Added by Elmar Hinz over 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2015-08-05
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
no-brainer
Sprint Focus:

Description

Wording issue: AbstractContentObject->getContentObject() returns a ContentObjectRenderer and not itself.

Hence, the API should be improved. Rename it to AbstractContentObject->getContentObjectRenderer()

Actions #1

Updated by Gerrit Code Review over 8 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42272

Actions #2

Updated by Gerrit Code Review over 8 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42272

Actions #3

Updated by Elmar Hinz over 8 years ago

There is a difference between ContentObject and ContentObjectRenderer.

TYPO3\CMS\Frontend\ContentObject\AbstractContentObject
TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer

For historical reasons we are used to address the ContentObjectRenderer as $cObj. However, to improve TYPO3 we need to come to a clean wording step by step.

TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer already demonstrates the clean wording.

A: To come to a clean wording with getContentObject and getContentObjectRenderer in the full range of TYPO3\CMS\Frontend\ it's just 2 places of Code to change:

TYPO3\CMS\Frontend\ContentObject\AbstractContentObject
Tests/Unit/ContentObject/FluidTemplateContentObjectTest

AbstractContentObject->getContentObject isn't called in any other place in the core, than in FluidTemplateContentObjectTest.

B: To come to a clean wording with this in the full range of extbase/fluid it's about 10 places to change. But that is technically independent.

C: On the long run it would be worthy to make the public accessible $cObj variable protected and access the ContentObjectRenderer by getContentRenderer().

Actions #4

Updated by Gerrit Code Review over 8 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42272

Actions #5

Updated by Benni Mack over 8 years ago

  • Category deleted (1599)
  • Target version deleted (7 LTS)
Actions #6

Updated by Gerrit Code Review about 8 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/42272

Actions #7

Updated by Gerrit Code Review about 8 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/42272

Actions #8

Updated by Gerrit Code Review about 8 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/42272

Actions #9

Updated by Gerrit Code Review about 8 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/42272

Actions #10

Updated by Gerrit Code Review about 8 years ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/42272

Actions #11

Updated by Gerrit Code Review about 8 years ago

Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/42272

Actions #12

Updated by Gerrit Code Review about 8 years ago

Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/42272

Actions #13

Updated by Gerrit Code Review about 8 years ago

Patch set 11 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/42272

Actions #14

Updated by Andreas Wolf about 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #15

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF