‪TYPO3CMS  9.5
TYPO3\CMS\Form\Hooks\SoftReferenceParserHook Class Reference
Inheritance diagram for TYPO3\CMS\Form\Hooks\SoftReferenceParserHook:
TYPO3\CMS\Core\Database\SoftReferenceIndex

Public Member Functions

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

Additional Inherited Members

- ‪Public Attributes inherited from ‪TYPO3\CMS\Core\Database\SoftReferenceIndex
string $tokenID_basePrefix = ''
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Database\SoftReferenceIndex
TYPO3 CMS Extbase SignalSlot Dispatcher getSignalSlotDispatcher ()
 
array emitSetTypoLinkPartsElement ($linkHandlerFound, $tLP, $content, $elements, $idx, $tokenID)
 

Detailed Description

Register new referenced formDefinitions within a plugin as a soft reference.

This is used in BE to track how often a specific form is used in a content element. The number is shown in the form module "Manage forms".

Scope: backend

Definition at line 30 of file SoftReferenceParserHook.php.

Member Function Documentation

◆ findRef()

array bool TYPO3\CMS\Form\Hooks\SoftReferenceParserHook::findRef (   $table,
  $field,
  $uid,
  $content,
  $spKey,
  $spParams,
  $structurePath = '' 
)

Main function through which all processing happens

Parameters
string$table‪Database table name
string$field‪Field name for which processing occurs
int$uid‪UID of the record
string$content‪The content/value of the field
string$spKey‪The 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.
array$spParams‪Parameters of the softlink parser. Basically this is the content inside optional []-brackets after the softref keys. Parameters are exploded by ";
string$structurePath‪If running from inside a FlexForm structure, this is the path of the tag.
Returns
‪array|bool Result array on positive matches, see description above. Otherwise FALSE

Reimplemented from TYPO3\CMS\Core\Database\SoftReferenceIndex.

Definition at line 44 of file SoftReferenceParserHook.php.

References TYPO3\CMS\Core\Database\SoftReferenceIndex\makeTokenID().