TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Backend\Toolbar\LiveSearchToolbarItem Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Toolbar\LiveSearchToolbarItem:
TYPO3\CMS\Backend\Toolbar\ToolbarItemHookInterface LiveSearch

Public Member Functions

 __construct (\TYPO3\CMS\Backend\Controller\BackendController &$backendReference=NULL)
 
 checkAccess ()
 
 render ()
 
 getAdditionalAttributes ()
 

Protected Member Functions

 addJavascriptToBackend ()
 

Protected Attributes

 $backendReference
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Adds backend live search to the toolbar

Author
Michael Klapper micha.nosp@m.el.k.nosp@m.lappe.nosp@m.r@ao.nosp@m.emedi.nosp@m.a.de
Jeff Segars jeff@.nosp@m.webe.nosp@m.mpowe.nosp@m.redc.nosp@m.hurch.nosp@m..org

Definition at line 22 of file LiveSearchToolbarItem.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Toolbar\LiveSearchToolbarItem::__construct ( \TYPO3\CMS\Backend\Controller\BackendController $backendReference = NULL)

Constructor

Parameters
\TYPO3\CMS\Backend\Controller\BackendController$backendReferenceTYPO3 backend object reference

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemHookInterface.

Definition at line 36 of file LiveSearchToolbarItem.php.

References TYPO3\CMS\Backend\Toolbar\LiveSearchToolbarItem\$backendReference.

Member Function Documentation

◆ addJavascriptToBackend()

TYPO3\CMS\Backend\Toolbar\LiveSearchToolbarItem::addJavascriptToBackend ( )
protected

Adds the necessary JavaScript to the backend

Returns
void

Definition at line 76 of file LiveSearchToolbarItem.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\Toolbar\LiveSearchToolbarItem\render().

◆ checkAccess()

TYPO3\CMS\Backend\Toolbar\LiveSearchToolbarItem::checkAccess ( )

Checks whether the user has access to this toolbar item

Returns
boolean TRUE if user has access, FALSE if not

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemHookInterface.

Definition at line 45 of file LiveSearchToolbarItem.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

◆ getAdditionalAttributes()

TYPO3\CMS\Backend\Toolbar\LiveSearchToolbarItem::getAdditionalAttributes ( )

returns additional attributes for the list item in the toolbar

Returns
string List item HTML attributes

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemHookInterface.

Definition at line 86 of file LiveSearchToolbarItem.php.

◆ render()

TYPO3\CMS\Backend\Toolbar\LiveSearchToolbarItem::render ( )

Creates the selector for workspaces

Returns
string Workspace selector as HTML select

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemHookInterface.

Definition at line 63 of file LiveSearchToolbarItem.php.

References $GLOBALS, and TYPO3\CMS\Backend\Toolbar\LiveSearchToolbarItem\addJavascriptToBackend().

Member Data Documentation

◆ $backendReference

TYPO3\CMS\Backend\Toolbar\LiveSearchToolbarItem::$backendReference
protected