From f94c3b1841b46b973d580af1aa1174403c66c70e Mon Sep 17 00:00:00 2001 From: Ingo Renner Date: Thu, 21 Feb 2008 12:38:25 +0000 Subject: [PATCH] modified the interface for toolbarItems so that the reference to the backend Object in the constructor is optional, this was necessary to have AJAX response methods in the same class as the code that generates the toolbar item itself git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3242 709f56b5-9817-0410-a4d7-c38de5d9e867 --- ChangeLog | 4 ++++ typo3/classes/class.backendsearchmenu.php | 2 +- typo3/classes/class.clearcachemenu.php | 2 +- typo3/classes/class.shortcutmenu.php | 2 +- typo3/classes/class.workspaceselector.php | 2 +- typo3/interfaces/interface.backend_toolbaritem.php | 2 +- typo3/sysext/opendocs/class.tx_opendocs.php | 2 +- 7 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 01c0c16edc51..26bc05e75005 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-02-21 Ingo Renner + + * modified the interface for toolbarItems so that the reference to the backend Object in the constructor is optional, this was necessary to have AJAX response methods in the same class as the code that generates the toolbar item itself + 2008-02-20 Stanislas Rolland * Fixed bug #7602: htmlArea RTE: Make the use of extended inline elements configurable diff --git a/typo3/classes/class.backendsearchmenu.php b/typo3/classes/class.backendsearchmenu.php index f9b31adea443..1dc4e2ea52c8 100644 --- a/typo3/classes/class.backendsearchmenu.php +++ b/typo3/classes/class.backendsearchmenu.php @@ -49,7 +49,7 @@ class BackendSearchMenu implements backend_toolbarItem { * * @param TYPO3backend TYPO3 backend object reference */ - public function __construct(TYPO3backend &$backendReference) { + public function __construct(TYPO3backend &$backendReference = null) { $this->backendReference = $backendReference; } diff --git a/typo3/classes/class.clearcachemenu.php b/typo3/classes/class.clearcachemenu.php index 7c35bcbd1771..8a38d72eb8a4 100644 --- a/typo3/classes/class.clearcachemenu.php +++ b/typo3/classes/class.clearcachemenu.php @@ -51,7 +51,7 @@ class ClearCacheMenu implements backend_toolbarItem { * * @param TYPO3backend TYPO3 backend object reference */ - public function __construct(TYPO3backend &$backendReference) { + public function __construct(TYPO3backend &$backendReference = null) { $this->backendReference = $backendReference; $this->cacheActions = array(); diff --git a/typo3/classes/class.shortcutmenu.php b/typo3/classes/class.shortcutmenu.php index 99c841426558..7088dbe62742 100644 --- a/typo3/classes/class.shortcutmenu.php +++ b/typo3/classes/class.shortcutmenu.php @@ -81,7 +81,7 @@ class ShortcutMenu implements backend_toolbarItem { * @param TYPO3backend TYPO3 backend object reference * @return void */ - public function __construct(TYPO3backend &$backendReference) { + public function __construct(TYPO3backend &$backendReference = null) { $this->backendReference = $backendReference; $this->shortcuts = array(); diff --git a/typo3/classes/class.workspaceselector.php b/typo3/classes/class.workspaceselector.php index 0bee2fd56296..93804e4eb514 100644 --- a/typo3/classes/class.workspaceselector.php +++ b/typo3/classes/class.workspaceselector.php @@ -50,7 +50,7 @@ class WorkspaceSelector implements backend_toolbarItem { * * @param TYPO3backend TYPO3 backend object reference */ - public function __construct(TYPO3backend &$backendReference) { + public function __construct(TYPO3backend &$backendReference = null) { $this->backendReference = $backendReference; $this->changeWorkspace = t3lib_div::_GP('changeWorkspace'); diff --git a/typo3/interfaces/interface.backend_toolbaritem.php b/typo3/interfaces/interface.backend_toolbaritem.php index d325bef1725d..52741aa39a37 100644 --- a/typo3/interfaces/interface.backend_toolbaritem.php +++ b/typo3/interfaces/interface.backend_toolbaritem.php @@ -40,7 +40,7 @@ interface backend_toolbarItem { * * @param TYPO3backend TYPO3 backend object reference */ - public function __construct(TYPO3backend &$backendReference); + public function __construct(TYPO3backend &$backendReference = null); /** * checks whether the user has access to this toolbar item diff --git a/typo3/sysext/opendocs/class.tx_opendocs.php b/typo3/sysext/opendocs/class.tx_opendocs.php index e40da0231af2..fc149a661c94 100644 --- a/typo3/sysext/opendocs/class.tx_opendocs.php +++ b/typo3/sysext/opendocs/class.tx_opendocs.php @@ -56,7 +56,7 @@ class tx_opendocs implements backend_toolbarItem { * * @param TYPO3backend TYPO3 backend object reference */ - public function __construct(TYPO3backend &$backendReference) { + public function __construct(TYPO3backend &$backendReference = null) { $this->backendReference = $backendReference; list($this->openDocs,) = $GLOBALS['BE_USER']->getModuleData('alt_doc.php','ses'); -- 2.20.1