TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Rtehtmlarea\Hook\SoftReferenceHook Class Reference
Inheritance diagram for TYPO3\CMS\Rtehtmlarea\Hook\SoftReferenceHook:
TYPO3\CMS\Core\Database\SoftReferenceIndex

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

Class for processing of the FAL soft references on img tags inserted in RTE content

Definition at line 20 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
intUID 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

Definition at line 37 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

Definition at line 59 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 23 of file SoftReferenceHook.php.