TYPO3
7.6
|
Public Member Functions | |
init () | |
initVariables () | |
insertPlainImage (File $fileObject, $altText= '', $titleText= '', $additionalParams= '') | |
getJSCode ($act, $editorNo, $sys_language_content) | |
processSessionData ($data) | |
getAllowedItems ($items) | |
orderMenuDefinition ($menuDefinition) | |
getHelpMessage ($act) | |
Public Attributes | |
const | PLAIN_MODE_IMAGE_FILE_EXTENSIONS = 'jpg,jpeg,gif,png' |
$extKey = 'rtehtmlarea' | |
$content | |
$allowedItems | |
$allowedFileTypes = array() | |
$editorNo | |
$sys_language_content | |
$buttonConfig | |
$addModifyTab | |
Protected Member Functions | |
initDocumentTemplate () | |
imageInsertJsStatement ($url, $width, $height, $altText= '', $titleText= '', $additionalParams= '') | |
insertImages ($insertJsStatements) | |
main_rte ($wiz=false) | |
buildMenuArray ($wiz, $allowedItems) | |
getImgPath () | |
getButtonConfig () | |
getDefaultClass () | |
setMaximumPlainImageDimensions () | |
fileIsSelectableInFileList (FileInterface $file, array $imgInfo) | |
getLanguageService () | |
getBackendUser () | |
Protected Attributes | |
$defaultClass | |
$plainMaxWidth | |
$plainMaxHeight | |
$imgPath | |
$hookName = 'ext/rtehtmlarea/mod4/class.tx_rtehtmlarea_select_image.php' | |
Script Class
Definition at line 33 of file SelectImage.php.
|
protected |
Returns an array definition of the top menu
bool | $wiz | |
array | $allowedItems |
Definition at line 592 of file SelectImage.php.
References $lang, SelectImage\getLanguageService(), SelectImage\orderMenuDefinition(), and GeneralUtility\quoteJSvalue().
Referenced by SelectImage\main_rte().
|
protected |
Checks if the given file is selectable in the filelist.
In "plain" RTE mode only image files with a maximum width and height are selectable.
FileInterface | $file | |
array | $imgInfo | Image dimensions from ::getImageDimensions() |
Definition at line 780 of file SelectImage.php.
References SelectImage\$plainMaxHeight, FileInterface\getExtension(), and GeneralUtility\inList().
getAllowedItems | ( | $items | ) |
Get the allowed items or tabs
string | $items,: | initial list of possible items |
Definition at line 664 of file SelectImage.php.
References SelectImage\$allowedItems, GeneralUtility\clientInfo(), and GeneralUtility\trimExplode().
Referenced by SelectImage\init().
|
protected |
Definition at line 803 of file SelectImage.php.
References $GLOBALS.
Referenced by SelectImage\main_rte().
|
protected |
Get the configuration of the image button
Definition at line 651 of file SelectImage.php.
Referenced by SelectImage\initVariables().
|
protected |
Get the default image class
Definition at line 717 of file SelectImage.php.
References SelectImage\$defaultClass.
Referenced by SelectImage\initVariables().
getHelpMessage | ( | $act | ) |
Get the help message to be displayed on a given tab
string | $act,: | the identifier of the tab |
Definition at line 757 of file SelectImage.php.
References SelectImage\getLanguageService().
Referenced by SelectImage\main_rte().
|
protected |
Get the path of the image to be inserted or modified
Definition at line 640 of file SelectImage.php.
Referenced by SelectImage\initVariables().
getJSCode | ( | $act, | |
$editorNo, | |||
$sys_language_content | |||
) |
Generate JS code to be used on the image insert/modify dialogue
string | $act,: | the action to be performed |
string | $editorNo,: | the number of the RTE instance on the page |
string | $sys_language_content,: | the language of the content element |
Definition at line 346 of file SelectImage.php.
References GeneralUtility\quoteJSvalue().
Referenced by SelectImage\main_rte().
|
protected |
Definition at line 795 of file SelectImage.php.
References $GLOBALS.
Referenced by SelectImage\buildMenuArray(), SelectImage\getHelpMessage(), and SelectImage\main_rte().
|
protected |
Assemble the image insertion JS statement
string | $url,: | the url of the image |
int | $width,: | the width of the image |
int | $height,: | the height of the image |
string | $altText,: | text for the alt attribute of the image |
string | $titleText,: | text for the title attribute of the image |
string | $additionalParams,: | text representing more html attributes to be added on the img tag |
Definition at line 300 of file SelectImage.php.
References $url, and GeneralUtility\quoteJSvalue().
Referenced by SelectImage\insertPlainImage().
init | ( | ) |
Initialisation
Definition at line 116 of file SelectImage.php.
References SelectImage\getAllowedItems(), SelectImage\initDocumentTemplate(), and SelectImage\initVariables().
|
protected |
Initialize document template object
Definition at line 173 of file SelectImage.php.
References ExtensionManagementUtility\extRelPath(), and GeneralUtility\quoteJSvalue().
Referenced by SelectImage\init().
initVariables | ( | ) |
Initialize class variables
Definition at line 133 of file SelectImage.php.
References GeneralUtility\_GP(), SelectImage\getButtonConfig(), SelectImage\getDefaultClass(), SelectImage\getImgPath(), and SelectImage\setMaximumPlainImageDimensions().
Referenced by SelectImage\init().
|
protected |
Echo the HTML page and JS that will insert the images
array | $insertJsStatements,: | array of image insertion JS statements |
Definition at line 312 of file SelectImage.php.
References GeneralUtility\quoteJSvalue().
insertPlainImage | ( | File | $fileObject, |
$altText = '' , |
|||
$titleText = '' , |
|||
$additionalParams = '' |
|||
) |
Insert a plain image
\TYPO3\CMS\Core\Resource\File | $fileObject,: | the image file |
string | $altText,: | text for the alt attribute of the image |
string | $titleText,: | text for the title attribute of the image |
string | $additionalParams,: | text representing more HTML attributes to be added on the img tag |
Definition at line 271 of file SelectImage.php.
References AbstractFile\getForLocalProcessing(), File\getProperty(), File\getPublicUrl(), and SelectImage\imageInsertJsStatement().
|
protected |
Rich Text Editor (RTE) image selector
bool | $wiz | Not used here, kept for method signature compatibility with parent class |
Definition at line 395 of file SelectImage.php.
References SelectImage\$content, $GLOBALS, $lang, SelectImage\buildMenuArray(), elseif, SelectImage\getBackendUser(), SelectImage\getHelpMessage(), ResourceFactory\getInstance(), SelectImage\getJSCode(), SelectImage\getLanguageService(), AbstractMessage\INFO, GeneralUtility\makeInstance(), GeneralUtility\quoteJSvalue(), and GeneralUtility\trimExplode().
orderMenuDefinition | ( | $menuDefinition | ) |
Order the definition of menu items according to configured order
array | $menuDefinition,: | definition of menu items |
Definition at line 697 of file SelectImage.php.
References GeneralUtility\trimExplode().
Referenced by SelectImage\buildMenuArray().
processSessionData | ( | $data | ) |
Session data for this class can be set from outside with this method. Call after init()
array | $data | Session data array |
Definition at line 368 of file SelectImage.php.
|
protected |
Set variables for maximum plain image dimensions
Definition at line 733 of file SelectImage.php.
Referenced by SelectImage\initVariables().
$addModifyTab |
Definition at line 104 of file SelectImage.php.
$allowedFileTypes = array() |
Definition at line 60 of file SelectImage.php.
$allowedItems |
Definition at line 55 of file SelectImage.php.
Referenced by SelectImage\getAllowedItems().
$buttonConfig |
Definition at line 99 of file SelectImage.php.
$content |
Definition at line 50 of file SelectImage.php.
Referenced by SelectImage\main_rte().
|
protected |
Definition at line 65 of file SelectImage.php.
Referenced by SelectImage\getDefaultClass().
$editorNo |
Definition at line 89 of file SelectImage.php.
$extKey = 'rtehtmlarea' |
Definition at line 45 of file SelectImage.php.
|
protected |
Definition at line 109 of file SelectImage.php.
|
protected |
Definition at line 84 of file SelectImage.php.
|
protected |
Definition at line 79 of file SelectImage.php.
Referenced by SelectImage\fileIsSelectableInFileList().
|
protected |
Definition at line 72 of file SelectImage.php.
$sys_language_content |
Definition at line 94 of file SelectImage.php.
const PLAIN_MODE_IMAGE_FILE_EXTENSIONS = 'jpg,jpeg,gif,png' |
These file extensions are allowed in the "plain" image selection mode.
Definition at line 40 of file SelectImage.php.