*
* @param TYPO3backend TYPO3 backend object reference
*/
- public function __construct(TYPO3backend &$backendReference = null) {
+ public function __construct(TYPO3backend &$backendReference = NULL) {
$this->backendReference = $backendReference;
$this->changeWorkspace = t3lib_div::_GP('changeWorkspace');
$this->changeWorkspacePreview = t3lib_div::_GP('changeWorkspacePreview');
* checks whether the user has access to this toolbar item
*
* @see typo3/alt_shortcut.php
- * @return boolean true if user has access, false if not
+ * @return boolean TRUE if user has access, FALSE if not
*/
public function checkAccess() {
if (t3lib_extMgm::isLoaded('workspaces')) {
* @return string workspace selector as HTML select
*/
public function render() {
- $title = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:toolbarItems.workspace', true);
+ $title = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:toolbarItems.workspace', TRUE);
$this->addJavascriptToBackend();
$availableWorkspaces = tx_Workspaces_Service_Workspaces::getAvailableWorkspaces();
$workspaceMenu = array();
}
} else {
$workspaceMenu[] = '<li>' . $stateUncheckedIcon . ' ' .
- $GLOBALS['LANG']->getLL('bookmark_noWSfound', true) .
+ $GLOBALS['LANG']->getLL('bookmark_noWSfound', TRUE) .
'</li>';
}
// go to workspace module link
$workspaceMenu[] = '<li class="divider">' . $stateUncheckedIcon . ' ' .
'<a href="javascript:top.goToModule(\'web_WorkspacesWorkspaces\');" target="content" id="goToWsModule">' .
- ' '. $GLOBALS['LANG']->getLL('bookmark_workspace', true) . '</a></li>';
+ ' '. $GLOBALS['LANG']->getLL('bookmark_workspace', TRUE) . '</a></li>';
}
$workspaceMenu[] = '</ul>';
if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/BackendUserInterface/WorkspaceSelectorToolbarItem.php'])) {
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/BackendUserInterface/WorkspaceSelectorToolbarItem.php']);
}
-?>
+?>
\ No newline at end of file