TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Rtehtmlarea\Hook\SoftReferenceHook Class Reference
Inheritance diagram for TYPO3\CMS\Rtehtmlarea\Hook\SoftReferenceHook:
TYPO3\CMS\Core\Database\SoftReferenceIndex tx_rtehtmlarea_softrefproc

Public Member Functions

 findRef ($table, $field, $uid, $content, $spKey, $spParams, $structurePath='')
 
 findRef_rtehtmlarea_images ($content, $spParams)
 
- Public Member Functions inherited from TYPO3\CMS\Core\Database\SoftReferenceIndex
 __construct ()
 
 findRef ($table, $field, $uid, $content, $spKey, $spParams, $structurePath='')
 
 findRef_images ($content, $spParams)
 
 findRef_typolink ($content, $spParams)
 
 findRef_typolink_tag ($content, $spParams)
 
 findRef_TStemplate ($content, $spParams)
 
 findRef_TSconfig ($content, $spParams)
 
 findRef_email ($content, $spParams)
 
 findRef_url ($content, $spParams)
 
 findRef_extension_fileref ($content, $spParams)
 
 fileadminReferences ($content, &$elements)
 
 getTypoLinkParts ($typolinkValue)
 
 setTypoLinkPartsElement ($tLP, &$elements, $content, $idx)
 
 getPageIdFromAlias ($link_param)
 
 makeTokenID ($index='')
 

Public Attributes

 $tokenID_basePrefix = ''
 
- Public Attributes inherited from TYPO3\CMS\Core\Database\SoftReferenceIndex
 $fileAdminDir = ''
 
 $tokenID_basePrefix = ''
 

Additional Inherited Members

- Protected Member Functions inherited from TYPO3\CMS\Core\Database\SoftReferenceIndex
 getSignalSlotDispatcher ()
 
 emitGetTypoLinkParts ($linkHandlerFound, $finalTagParts, $linkHandlerKeyword, $linkHandlerValue)
 
 emitSetTypoLinkPartsElement ($linkHandlerFound, $tLP, $content, $elements, $idx, $tokenID)
 

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! Class for processing of the FAL soft references on img tags inserted in RTE content

Author
Stanislas Rolland stani.nosp@m.slas.nosp@m..roll.nosp@m.and@.nosp@m.typo3.nosp@m..org

Definition at line 21 of file SoftReferenceHook.php.

Member Function Documentation

◆ findRef()

TYPO3\CMS\Rtehtmlarea\Hook\SoftReferenceHook::findRef (   $table,
  $field,
  $uid,
  $content,
  $spKey,
  $spParams,
  $structurePath = '' 
)

Main function through which all processing happens

Parameters
stringDatabase table name
stringField name for which processing occurs
integerUID of the record
stringThe content/value of the field
stringThe softlink parser key. This is only interesting if more than one parser is grouped in the same class. That is the case with this parser.
arrayParameters of the softlink parser. Basically this is the content inside optional []-brackets after the softref keys. Parameters are exploded by ";
stringIf running from inside a FlexForm structure, this is the path of the tag.
Returns
array Result array on positive matches. Otherwise FALSE
Todo:
Define visibility

Definition at line 39 of file SoftReferenceHook.php.

References $uid, and TYPO3\CMS\Rtehtmlarea\Hook\SoftReferenceHook\findRef_rtehtmlarea_images().

◆ findRef_rtehtmlarea_images()

TYPO3\CMS\Rtehtmlarea\Hook\SoftReferenceHook::findRef_rtehtmlarea_images (   $content,
  $spParams 
)

Finding image tags with data-htmlarea-file-uid attribute in the content. All images that have an data-htmlarea-file-uid attribute will be returned with an info text

Parameters
stringThe input content to analyse
arrayParameters set for the softref parser key in TCA/columns
Returns
array Result array on positive matches, see description above. Otherwise FALSE
Todo:
Define visibility

Definition at line 61 of file SoftReferenceHook.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), and TYPO3\CMS\Core\Database\SoftReferenceIndex\makeTokenID().

Referenced by TYPO3\CMS\Rtehtmlarea\Hook\SoftReferenceHook\findRef().

Member Data Documentation

◆ $tokenID_basePrefix

TYPO3\CMS\Rtehtmlarea\Hook\SoftReferenceHook::$tokenID_basePrefix = ''

Definition at line 24 of file SoftReferenceHook.php.