Project

General

Profile

Actions

Bug #18509

closed

XCLASSing ToolbarItem does not work

Added by Steffen Kamper over 16 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2008-03-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Because in backend.php there is no makeInstance of toolbarItemClasses xclassing is not possible.

adding
// get name of XCLASS (if any):
$toolbarItemClassName = t3lib_div::makeInstanceClassName($toolbarItemClassName);

does the trick, thx olly for the hint.

(issue imported from #M7954)


Files

7954_xclass_toolbaritemclasses.diff (795 Bytes) 7954_xclass_toolbaritemclasses.diff Administrator Admin, 2008-03-28 17:49
Actions #1

Updated by Steffen Kamper over 16 years ago

second problem: private declare in class.clearcachemenu.php make it impossible to extend and add own items.
$cacheActions has to be public
$backendReference has to be protected.

with this change it's possible to add own items in extended class:

parent::__construct($backendReference);
$this->cacheActions[] = array(...);

second patch is attached.

Actions #2

Updated by Steffen Kamper over 16 years ago

i moved 2nd one and merged in #18512

Actions #3

Updated by Oliver Hader over 16 years ago

Committed to SVN TYPO3_4-2 (rev. 3484)

Actions

Also available in: Atom PDF