cleaner backend project: modified interface for toolbar items to add access chechking
[Packages/TYPO3.CMS.git] / typo3 / classes / class.backendsearchmenu.php
index 13835ca..f9b31ad 100644 (file)
@@ -45,15 +45,25 @@ class BackendSearchMenu implements backend_toolbarItem {
        private $backendReference;
 
        /**
-        * sets the backend reference
+        * constructor
         *
-        * @param TYPO3backend backend object reference
+        * @param       TYPO3backend    TYPO3 backend object reference
         */
-       public function setBackend(&$backendReference) {
+       public function __construct(TYPO3backend &$backendReference) {
                $this->backendReference = $backendReference;
        }
 
        /**
+        * checks whether the user has access to this toolbar item
+        *
+        * @return  boolean  true if user has access, false if not
+        */
+       public function checkAccess() {
+                       // FIXME - needs proper access check
+               return true;
+       }
+
+       /**
         * Creates the selector for workspaces
         *
         * @return      string          workspace selector as HTML select