![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct () | |
checkAccess () | |
loadDocsFromUserSession () | |
getItem () | |
getDropDown () | |
getAdditionalAttributes () | |
hasDropDown () | |
updateNumberOfOpenDocsHook (&$params, $ref) | |
closeDocument (ServerRequestInterface $request, ResponseInterface $response) | |
renderMenu (ServerRequestInterface $request, ResponseInterface $response) | |
getIndex () | |
Protected Member Functions | |
renderMenuEntry ($document, $md5sum, $isRecentDoc=false, $isFirstDoc=false) | |
getBackendUser () | |
getPageRenderer () | |
getLanguageService () | |
getDatabaseConnection () | |
Protected Attributes | |
$openDocs | |
$recentDocs | |
$iconFactory | |
Alist of all open documents
Definition at line 28 of file OpendocsToolbarItem.php.
__construct | ( | ) |
Constructor
Definition at line 48 of file OpendocsToolbarItem.php.
References OpendocsToolbarItem\getLanguageService(), OpendocsToolbarItem\getPageRenderer(), OpendocsToolbarItem\loadDocsFromUserSession(), and GeneralUtility\makeInstance().
checkAccess | ( | ) |
Checks whether the user has access to this toolbar item
Implements ToolbarItemInterface.
Definition at line 62 of file OpendocsToolbarItem.php.
References OpendocsToolbarItem\getBackendUser().
closeDocument | ( | ServerRequestInterface | $request, |
ResponseInterface | $response | ||
) |
Closes a document in the session and
ServerRequestInterface | $request | |
ResponseInterface | $response |
Definition at line 230 of file OpendocsToolbarItem.php.
References OpendocsToolbarItem\getBackendUser(), ServerRequestInterface\getParsedBody(), ServerRequestInterface\getQueryParams(), and OpendocsToolbarItem\renderMenu().
getAdditionalAttributes | ( | ) |
No additional attributes
Implements ToolbarItemInterface.
Definition at line 184 of file OpendocsToolbarItem.php.
|
protected |
Returns the current BE user.
Definition at line 279 of file OpendocsToolbarItem.php.
References $GLOBALS.
Referenced by OpendocsToolbarItem\checkAccess(), OpendocsToolbarItem\closeDocument(), and OpendocsToolbarItem\loadDocsFromUserSession().
|
protected |
Return DatabaseConnection
Definition at line 309 of file OpendocsToolbarItem.php.
References $GLOBALS.
getDropDown | ( | ) |
Render drop down
Implements ToolbarItemInterface.
Definition at line 102 of file OpendocsToolbarItem.php.
References OpendocsToolbarItem\$openDocs, OpendocsToolbarItem\$recentDocs, OpendocsToolbarItem\getLanguageService(), and OpendocsToolbarItem\renderMenuEntry().
Referenced by OpendocsToolbarItem\renderMenu().
getIndex | ( | ) |
Position relative to others
Implements ToolbarItemInterface.
Definition at line 269 of file OpendocsToolbarItem.php.
getItem | ( | ) |
Render toolbar icon
Implements ToolbarItemInterface.
Definition at line 85 of file OpendocsToolbarItem.php.
References OpendocsToolbarItem\getLanguageService(), and Icon\SIZE_SMALL.
|
protected |
Returns LanguageService
Definition at line 299 of file OpendocsToolbarItem.php.
References $GLOBALS.
Referenced by OpendocsToolbarItem\__construct(), OpendocsToolbarItem\getDropDown(), OpendocsToolbarItem\getItem(), and OpendocsToolbarItem\renderMenuEntry().
|
protected |
Returns current PageRenderer
Definition at line 289 of file OpendocsToolbarItem.php.
References GeneralUtility\makeInstance().
Referenced by OpendocsToolbarItem\__construct().
hasDropDown | ( | ) |
This item has a drop down
Implements ToolbarItemInterface.
Definition at line 194 of file OpendocsToolbarItem.php.
loadDocsFromUserSession | ( | ) |
Loads the opened and recently opened documents from the user
Definition at line 73 of file OpendocsToolbarItem.php.
References OpendocsToolbarItem\getBackendUser().
Referenced by OpendocsToolbarItem\__construct().
renderMenu | ( | ServerRequestInterface | $request, |
ResponseInterface | $response | ||
) |
Renders the menu so that it can be returned as response to an AJAX call
ServerRequestInterface | $request | |
ResponseInterface | $response |
Definition at line 257 of file OpendocsToolbarItem.php.
References $response, MessageInterface\getBody(), OpendocsToolbarItem\getDropDown(), and MessageInterface\withHeader().
Referenced by OpendocsToolbarItem\closeDocument().
|
protected |
Returns the recent documents list as an array
array | $document | |
string | $md5sum | |
bool | $isRecentDoc | |
bool | $isFirstDoc |
Definition at line 143 of file OpendocsToolbarItem.php.
References OpendocsToolbarItem\getLanguageService(), GeneralUtility\quoteJSvalue(), and Icon\SIZE_SMALL.
Referenced by OpendocsToolbarItem\getDropDown().
updateNumberOfOpenDocsHook | ( | & | $params, |
$ref | |||
) |
Called as a hook in ::setUpdateSignal, calls a JS function to change the number of opened documents
array | $params | |
unknown_type | $ref |
Definition at line 211 of file OpendocsToolbarItem.php.
|
protected |
Definition at line 43 of file OpendocsToolbarItem.php.
|
protected |
Definition at line 33 of file OpendocsToolbarItem.php.
Referenced by OpendocsToolbarItem\getDropDown().
|
protected |
Definition at line 38 of file OpendocsToolbarItem.php.
Referenced by OpendocsToolbarItem\getDropDown().