TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Rtehtmlarea\BrowseLinks Class Reference
Inheritance diagram for TYPO3\CMS\Rtehtmlarea\BrowseLinks:
TYPO3\CMS\Recordlist\Browser\ElementBrowser tx_rtehtmlarea_browse_links

Public Member Functions

 init ()
 
 initVariables ()
 
 initConfiguration ()
 
 getBodyTagAdditions ()
 
 getJSCode ()
 
 main_rte ($wiz=0)
 
 addAttributesForm ($rows='')
 
 wrapInForm ($string)
 
 addPageIdSelector ()
 
 addRelField ()
 
 addQueryParametersSelector ()
 
 addTargetSelector ()
 
 addClassSelector ()
 
 getClassOnChangeJS ()
 
 addTitleSelector ()
 
 getLLContent ($string)
 
 getPageConfigLabel ($string, $JScharCode=1)
 
- Public Member Functions inherited from TYPO3\CMS\Recordlist\Browser\ElementBrowser
 getThisScript ()
 
 init ()
 
 initVariables ()
 
 initConfiguration ()
 
 getJsCode ()
 
 processSessionData ($data)
 
 main_rte ($wiz=FALSE)
 
 main_folder ()
 
 expandPage ()
 
 TBE_expandSubFolders (Folder $folder)
 
 expandFolder (Folder $folder, $extensionList='')
 
 TBE_expandFolder (Folder $folder, $extensionList='', $noThumbs=FALSE)
 
 folderList (Folder $baseFolder)
 
 TBE_dragNDrop (Folder $folder, $extensionList='')
 
 isWebFolder ($folder)
 
 checkFolder ($folder)
 
 barheader ($str)
 
 getMsgBox ($in_msg, $icon='icon_note')
 
 printCurrentUrl ($str)
 
 parseCurUrl ($href, $siteUrl)
 
 setRecordList ($recordList)
 
 uploadForm (Folder $folderObject)
 
 createFolder (Folder $folderObject)
 
 getBulkSelector ($filesCount)
 

Public Attributes

 $editorNo
 
 $contentTypo3Language
 
 $contentTypo3Charset = 'utf-8'
 
 $additionalAttributes = array()
 
 $buttonConfig = array()
 
 $RTEProperties = array()
 
 $anchorTypes = array('page', 'url', 'file', 'mail', 'spec')
 
 $classesAnchorDefault = array()
 
 $classesAnchorDefaultTitle = array()
 
 $classesAnchorClassTitle = array()
 
 $classesAnchorDefaultTarget = array()
 
 $classesAnchorJSOptions = array()
 
 $allowedItems
 
- Public Attributes inherited from TYPO3\CMS\Recordlist\Browser\ElementBrowser
 $siteURL
 
 $thisScript
 
 $thisConfig
 
 $setTarget
 
 $setClass
 
 $setTitle
 
 $setParams
 
 $doc
 
 $elements = array()
 
 $mode
 
 $act
 
 $expandPage
 
 $expandFolder
 
 $P
 
 $bparams
 
 $RTEtsConfigParams
 
 $PM
 
 $pointer
 
 $curUrlArray
 
 $curUrlInfo
 
 $fileProcessor
 

Protected Member Functions

 initDocumentTemplate ()
 
 initCurrentUrl ()
 
 getRTEConfig ()
 
 getButtonConfig ($buttonName)
 
 initLinkAttributes ()
 
- Protected Member Functions inherited from TYPO3\CMS\Recordlist\Browser\ElementBrowser
 determineScriptUrl ()
 
 initDocumentTemplate ()
 
 initHookObjects ($hookKey)
 
 initCurrentUrl ()
 
 getRTEConfig ()
 
 fileIsSelectableInFileList (\TYPO3\CMS\Core\Resource\FileInterface $file, array $imgInfo)
 
 areFieldChangeFunctionsValid ($handleFlexformSections=FALSE)
 

Protected Attributes

 $contentLanguageService
 
 $defaultLinkTarget
 
- Protected Attributes inherited from TYPO3\CMS\Recordlist\Browser\ElementBrowser
 $recordList = NULL
 
 $selectedFolder
 
 $hookObjects = array()
 

Detailed Description

Script class for the Element Browser window.

Author
Kasper Skårhøj kaspe.nosp@m.rYYY.nosp@m.Y@typ.nosp@m.o3.c.nosp@m.om

Definition at line 25 of file BrowseLinks.php.

Member Function Documentation

◆ addAttributesForm()

◆ addClassSelector()

TYPO3\CMS\Rtehtmlarea\BrowseLinks::addClassSelector ( )

Return html code for the class selector

Returns
string the html code to be added to the form

Definition at line 866 of file BrowseLinks.php.

References TYPO3\CMS\Recordlist\Browser\ElementBrowser\$act, $GLOBALS, and TYPO3\CMS\Rtehtmlarea\BrowseLinks\getClassOnChangeJS().

Referenced by TYPO3\CMS\Rtehtmlarea\BrowseLinks\addAttributesForm().

◆ addPageIdSelector()

TYPO3\CMS\Rtehtmlarea\BrowseLinks::addPageIdSelector ( )
Todo:
Define visibility

Definition at line 758 of file BrowseLinks.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Rtehtmlarea\BrowseLinks\addAttributesForm().

◆ addQueryParametersSelector()

TYPO3\CMS\Rtehtmlarea\BrowseLinks::addQueryParametersSelector ( )
Todo:
Define visibility

Definition at line 784 of file BrowseLinks.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Rtehtmlarea\BrowseLinks\addAttributesForm().

◆ addRelField()

TYPO3\CMS\Rtehtmlarea\BrowseLinks::addRelField ( )
Todo:
Define visibility

Definition at line 771 of file BrowseLinks.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Rtehtmlarea\BrowseLinks\addAttributesForm().

◆ addTargetSelector()

TYPO3\CMS\Rtehtmlarea\BrowseLinks::addTargetSelector ( )
Todo:
Define visibility

Definition at line 797 of file BrowseLinks.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Rtehtmlarea\BrowseLinks\addAttributesForm().

◆ addTitleSelector()

TYPO3\CMS\Rtehtmlarea\BrowseLinks::addTitleSelector ( )

◆ getBodyTagAdditions()

TYPO3\CMS\Rtehtmlarea\BrowseLinks::getBodyTagAdditions ( )

Provide the additional parameters to be included in the template body tag

Returns
string the body tag additions

Definition at line 275 of file BrowseLinks.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\implodeAttributes().

Referenced by TYPO3\CMS\Rtehtmlarea\BrowseLinks\initDocumentTemplate().

◆ getButtonConfig()

TYPO3\CMS\Rtehtmlarea\BrowseLinks::getButtonConfig (   $buttonName)
protected

Get the configuration of the button

Parameters
string$buttonName,the name of the button
Returns
array the configuration array of the image button

Definition at line 181 of file BrowseLinks.php.

Referenced by TYPO3\CMS\Rtehtmlarea\BrowseLinks\initConfiguration().

◆ getClassOnChangeJS()

TYPO3\CMS\Rtehtmlarea\BrowseLinks::getClassOnChangeJS ( )

Return JS code for the class selector onChange event

Returns
string class selector onChange JS code

Definition at line 887 of file BrowseLinks.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue().

Referenced by TYPO3\CMS\Rtehtmlarea\BrowseLinks\addClassSelector().

◆ getJSCode()

TYPO3\CMS\Rtehtmlarea\BrowseLinks::getJSCode ( )

Generate JS code to be used on the link insert/modify dialogue

Returns
string the generated JS code
Todo:
Define visibility

Definition at line 292 of file BrowseLinks.php.

References $GLOBALS, TYPO3\CMS\Recordlist\Browser\ElementBrowser\getThisScript(), TYPO3\CMS\Core\Utility\GeneralUtility\getUserObj(), and TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue().

Referenced by TYPO3\CMS\Rtehtmlarea\BrowseLinks\init().

◆ getLLContent()

TYPO3\CMS\Rtehtmlarea\BrowseLinks::getLLContent (   $string)

Localize a string using the language of the content element rather than the language of the BE interface

Parameters
stringstring: the label to be localized
Returns
string Localized string.

Definition at line 946 of file BrowseLinks.php.

Referenced by TYPO3\CMS\Rtehtmlarea\BrowseLinks\initLinkAttributes().

◆ getPageConfigLabel()

TYPO3\CMS\Rtehtmlarea\BrowseLinks::getPageConfigLabel (   $string,
  $JScharCode = 1 
)

Localize a label obtained from Page TSConfig

Parameters
string$stringThe label to be localized
boolean$JScharCodeIf needs to be converted to a array of char numbers
Returns
string Localized string.

Definition at line 957 of file BrowseLinks.php.

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

Referenced by TYPO3\CMS\Rtehtmlarea\BrowseLinks\initLinkAttributes().

◆ getRTEConfig()

TYPO3\CMS\Rtehtmlarea\BrowseLinks::getRTEConfig ( )
protected

Get the RTE configuration from Page TSConfig

Returns
array RTE configuration array

Definition at line 168 of file BrowseLinks.php.

References $GLOBALS, TYPO3\CMS\Backend\Utility\BackendUtility\getPagesTSconfig(), and TYPO3\CMS\Backend\Utility\BackendUtility\RTEsetup().

Referenced by TYPO3\CMS\Rtehtmlarea\BrowseLinks\initConfiguration().

◆ init()

◆ initConfiguration()

TYPO3\CMS\Rtehtmlarea\BrowseLinks::initConfiguration ( )

Initializes the configuration variables

Returns
void

Definition at line 123 of file BrowseLinks.php.

References TYPO3\CMS\Rtehtmlarea\BrowseLinks\getButtonConfig(), and TYPO3\CMS\Rtehtmlarea\BrowseLinks\getRTEConfig().

Referenced by TYPO3\CMS\Rtehtmlarea\BrowseLinks\init().

◆ initCurrentUrl()

TYPO3\CMS\Rtehtmlarea\BrowseLinks::initCurrentUrl ( )
protected

Initialize $this->curUrlArray and $this->curUrlInfo based on script parameters

Returns
void

Definition at line 148 of file BrowseLinks.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\_GP(), TYPO3\CMS\Core\Utility\GeneralUtility\get_tag_attributes(), and TYPO3\CMS\Recordlist\Browser\ElementBrowser\parseCurUrl().

Referenced by TYPO3\CMS\Rtehtmlarea\BrowseLinks\init().

◆ initDocumentTemplate()

TYPO3\CMS\Rtehtmlarea\BrowseLinks::initDocumentTemplate ( )
protected

◆ initLinkAttributes()

TYPO3\CMS\Rtehtmlarea\BrowseLinks::initLinkAttributes ( )
protected

◆ initVariables()

TYPO3\CMS\Rtehtmlarea\BrowseLinks::initVariables ( )

◆ main_rte()

◆ wrapInForm()

TYPO3\CMS\Rtehtmlarea\BrowseLinks::wrapInForm (   $string)
Todo:
Define visibility

Definition at line 732 of file BrowseLinks.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Rtehtmlarea\BrowseLinks\addAttributesForm().

Member Data Documentation

◆ $additionalAttributes

TYPO3\CMS\Rtehtmlarea\BrowseLinks::$additionalAttributes = array()

Definition at line 39 of file BrowseLinks.php.

◆ $allowedItems

TYPO3\CMS\Rtehtmlarea\BrowseLinks::$allowedItems

Definition at line 59 of file BrowseLinks.php.

◆ $anchorTypes

TYPO3\CMS\Rtehtmlarea\BrowseLinks::$anchorTypes = array('page', 'url', 'file', 'mail', 'spec')

Definition at line 45 of file BrowseLinks.php.

◆ $buttonConfig

TYPO3\CMS\Rtehtmlarea\BrowseLinks::$buttonConfig = array()

Definition at line 41 of file BrowseLinks.php.

◆ $classesAnchorClassTitle

TYPO3\CMS\Rtehtmlarea\BrowseLinks::$classesAnchorClassTitle = array()

Definition at line 51 of file BrowseLinks.php.

◆ $classesAnchorDefault

TYPO3\CMS\Rtehtmlarea\BrowseLinks::$classesAnchorDefault = array()

Definition at line 47 of file BrowseLinks.php.

◆ $classesAnchorDefaultTarget

TYPO3\CMS\Rtehtmlarea\BrowseLinks::$classesAnchorDefaultTarget = array()

Definition at line 53 of file BrowseLinks.php.

◆ $classesAnchorDefaultTitle

TYPO3\CMS\Rtehtmlarea\BrowseLinks::$classesAnchorDefaultTitle = array()

Definition at line 49 of file BrowseLinks.php.

◆ $classesAnchorJSOptions

TYPO3\CMS\Rtehtmlarea\BrowseLinks::$classesAnchorJSOptions = array()

Definition at line 55 of file BrowseLinks.php.

◆ $contentLanguageService

TYPO3\CMS\Rtehtmlarea\BrowseLinks::$contentLanguageService
protected

Language service object for localization to the content language

Definition at line 37 of file BrowseLinks.php.

◆ $contentTypo3Charset

TYPO3\CMS\Rtehtmlarea\BrowseLinks::$contentTypo3Charset = 'utf-8'

Definition at line 33 of file BrowseLinks.php.

◆ $contentTypo3Language

TYPO3\CMS\Rtehtmlarea\BrowseLinks::$contentTypo3Language

TYPO3 language code of the content language

Definition at line 31 of file BrowseLinks.php.

◆ $defaultLinkTarget

TYPO3\CMS\Rtehtmlarea\BrowseLinks::$defaultLinkTarget
protected

◆ $editorNo

TYPO3\CMS\Rtehtmlarea\BrowseLinks::$editorNo

Definition at line 27 of file BrowseLinks.php.

◆ $RTEProperties

TYPO3\CMS\Rtehtmlarea\BrowseLinks::$RTEProperties = array()

Definition at line 43 of file BrowseLinks.php.