-2007-11-26 Wolfgang Klinger <wk@plan2.net>
+2007-11-26 Ingo Renner <ingo@typo3.org>
+
+ * moved interface t3lib_backendToolbarItem to typo3/interfaces/interface.backend_toolbaritem.php
+
+2007-11-26 Wolfgang Klinger <wk@plan2.net>
* Fixed bug #6831: Clickmenu is cut off on the left, when it does not fit in the viewport (Thanks to Helmut Hummel)
* Fixed bug #5956: TCA eval required on date field does not work
-2007-11-23 Wolfgang Klinger <wk@plan2.net>
+2007-11-23 Wolfgang Klinger <wk@plan2.net>
* Fixed bug #6775: Page and info module ignore "Limit to language"
+++ /dev/null
-<?php
-/***************************************************************
-* Copyright notice
-*
-* (c) 2007 Ingo Renner <ingo@typo3.org>
-* All rights reserved
-*
-* This script is part of the TYPO3 project. The TYPO3 project is
-* free software; you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation; either version 2 of the License, or
-* (at your option) any later version.
-*
-* The GNU General Public License can be found at
-* http://www.gnu.org/copyleft/gpl.html.
-* A copy is found in the textfile GPL.txt and important notices to the license
-* from the author is found in LICENSE.txt distributed with these scripts.
-*
-*
-* This script is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
-
-
-/**
- * interface for classes which extend the backend by adding items to the top toolbar
- *
- * @author Ingo Renner <ingo@typo3.org>
- * @package TYPO3
- * @subpackage t3lib
- */
-interface t3lib_backendToolbarItem {
-
- /**
- * sets the reference to the backend object
- *
- * @param TYPO3backend TYPO3 backend object reference
- * @return void
- */
- public function setBackend(&$backendReference);
-
- /**
- * renders the toolbar item
- *
- * @return string the toolbar item rendered as HTML string
- */
- public function render();
-}
-
-?>
\ No newline at end of file
require_once ('init.php');
require_once ('template.php');
-require_once (PATH_t3lib.'interfaces/interface.t3lib_backendtoolbaritem.php');
+require_once ('interfaces/interface.backend_toolbaritem.php');
require ('classes/class.typo3logo.php');
require ('classes/class.modulemenu.php');
foreach($coreToolbarItems as $toolbarItemName => $toolbarItemClass) {
$toolbarItem = t3lib_div::makeInstance($toolbarItemClass);
- if(!($toolbarItem instanceof t3lib_backendToolbarItem)) {
- throw new UnexpectedValueException('$toolbarItem "'.$toolbarItemName.'" must implement interface t3lib_backendToolbarItem', 1195126772);
+ if(!($toolbarItem instanceof backend_toolbarItem)) {
+ throw new UnexpectedValueException('$toolbarItem "'.$toolbarItemName.'" must implement interface backend_toolbarItem', 1195126772);
}
$toolbarItem->setBackend($this);
* @package TYPO3
* @subpackage core
*/
-class WorkspaceSelector implements t3lib_backendToolbarItem {
+class WorkspaceSelector implements backend_toolbarItem {
private $changeWorkspace;
private $changeWorkspacePreview;
*/
private $backendReference;
+ /**
+ * constructor
+ *
+ * @return void
+ */
public function __construct() {
$this->changeWorkspace = t3lib_div::_GP('changeWorkspace');
$this->changeWorkspacePreview = t3lib_div::_GP('changeWorkspacePreview');
--- /dev/null
+<?php
+/***************************************************************
+* Copyright notice
+*
+* (c) 2007 Ingo Renner <ingo@typo3.org>
+* All rights reserved
+*
+* This script is part of the TYPO3 project. The TYPO3 project is
+* free software; you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation; either version 2 of the License, or
+* (at your option) any later version.
+*
+* The GNU General Public License can be found at
+* http://www.gnu.org/copyleft/gpl.html.
+* A copy is found in the textfile GPL.txt and important notices to the license
+* from the author is found in LICENSE.txt distributed with these scripts.
+*
+*
+* This script is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* This copyright notice MUST APPEAR in all copies of the script!
+***************************************************************/
+
+
+/**
+ * interface for classes which extend the backend by adding items to the top toolbar
+ *
+ * @author Ingo Renner <ingo@typo3.org>
+ * @package TYPO3
+ * @subpackage t3lib
+ */
+interface backend_toolbarItem {
+
+ /**
+ * sets the reference to the backend object
+ *
+ * @param TYPO3backend TYPO3 backend object reference
+ * @return void
+ */
+ public function setBackend(&$backendReference);
+
+ /**
+ * renders the toolbar item
+ *
+ * @return string the toolbar item rendered as HTML string
+ */
+ public function render();
+}
+
+?>
\ No newline at end of file