Project

General

Profile

Actions

Bug #24341

closed

No access to cObj in classes tslib_content_Media , tslib_content_Abstract by custom media renderer

Added by Sven Wappler almost 14 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-12-15
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

The tslib_content_Media object passes on itself to customMediaRender function in class.tslib_content_media.php line 229:

$content = $hookObj->customMediaRender($renderType, $conf, $this);

But the custom media renderer cannot access the cObj variable because it is protected. But access is necessary for reading out important data. Please pass on the cObj-variable to the renderer or make it accessible.

(issue imported from #M16746)

Actions #1

Updated by Steffen Gebert almost 14 years ago

Was $this->cObj accessible before?

Actions #2

Updated by Sven Wappler almost 14 years ago

In Version 4.4 the cObj was passed directly in typo3/sysext/cms/tslib/class.tslib_content.php in lin 2829 because the caller of the function $hookObj->customMediaRender($renderType, $conf, $this) was the cObj self. That is the reason why the new way is completely incompatible to former versions.

Actions #3

Updated by Steffen Gebert almost 14 years ago

So before $this was the cObj, now it is tslib_content_Media?

Actions #4

Updated by Sven Wappler almost 14 years ago

Correct

Actions #5

Updated by Steffen Gebert almost 14 years ago

Okay, great.. thanks for your feedback!

Would you mind sending an RFC to the core team list, to get this change into the svn repository? I've described the process here http://typo3blogger.de/ab-in-den-core/

Thanks for your contribution!

Actions #6

Updated by Alexander Opitz almost 11 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (0)
  • Is Regression set to No

Hi,

as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (4.5 or 6.1)?

Actions #7

Updated by Alexander Opitz over 10 years ago

  • Status changed from Needs Feedback to Closed

No feedback within the last 90 days => closing this ticket.

If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.

Actions

Also available in: Atom PDF