‪TYPO3CMS  ‪main
TYPO3\CMS\Form\SoftReference\FormPersistenceIdentifierSoftReferenceParser Class Reference
Inheritance diagram for TYPO3\CMS\Form\SoftReference\FormPersistenceIdentifierSoftReferenceParser:
TYPO3\CMS\Core\DataHandling\SoftReference\AbstractSoftReferenceParser TYPO3\CMS\Core\DataHandling\SoftReference\SoftReferenceParserInterface

Public Member Functions

 parse (string $table, string $field, int $uid, string $content, string $structurePath='')
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\DataHandling\SoftReference\AbstractSoftReferenceParser
string makeTokenID (string $index='')
 
 setParserKey (string $parserKey, array $parameters)
 
 getParserKey ()
 

Private Member Functions

 createResultForExtensionReference (string $extensionReference, string $tokenId)
 

Additional Inherited Members

- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\DataHandling\SoftReference\AbstractSoftReferenceParser
 setTokenIdBasePrefix (string $table, string $uid, string $field, string $structurePath)
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\DataHandling\SoftReference\AbstractSoftReferenceParser
string $tokenID_basePrefix = ''
 
string $parserKey = ''
 
array $parameters = []
 

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 35 of file FormPersistenceIdentifierSoftReferenceParser.php.

Member Function Documentation

◆ createResultForExtensionReference()

TYPO3\CMS\Form\SoftReference\FormPersistenceIdentifierSoftReferenceParser::createResultForExtensionReference ( string  $extensionReference,
string  $tokenId 
)
private

◆ parse()

TYPO3\CMS\Form\SoftReference\FormPersistenceIdentifierSoftReferenceParser::parse ( string  $table,
string  $field,
int  $uid,
string  $content,
string  $structurePath = '' 
)

Main function through which can parse content for a specific field.

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$structurePath‪If running from inside a FlexForm structure, this is the path of the tag.
Returns
‪SoftReferenceParserResult Result object on positive matches, see description above.
See also
‪SoftReferenceParserResult

Implements TYPO3\CMS\Core\DataHandling\SoftReference\SoftReferenceParserInterface.

Definition at line 37 of file FormPersistenceIdentifierSoftReferenceParser.php.

References TYPO3\CMS\Webhooks\Message\$uid, TYPO3\CMS\Core\DataHandling\SoftReference\SoftReferenceParserResult\create(), TYPO3\CMS\Form\SoftReference\FormPersistenceIdentifierSoftReferenceParser\createResultForExtensionReference(), TYPO3\CMS\Core\DataHandling\SoftReference\SoftReferenceParserResult\createWithoutMatches(), TYPO3\CMS\Core\Utility\PathUtility\isExtensionPath(), TYPO3\CMS\Core\DataHandling\SoftReference\AbstractSoftReferenceParser\makeTokenID(), and TYPO3\CMS\Core\DataHandling\SoftReference\AbstractSoftReferenceParser\setTokenIdBasePrefix().