‪TYPO3CMS  11.5
TYPO3\CMS\Core\DataHandling\SoftReference\NotifySoftReferenceParser Class Reference
Inheritance diagram for TYPO3\CMS\Core\DataHandling\SoftReference\NotifySoftReferenceParser:
TYPO3\CMS\Core\DataHandling\SoftReference\SoftReferenceParserInterface

Public Member Functions

 setParserKey (string $parserKey, array $parameters)
 
 getParserKey ()
 
 parse (string $table, string $field, int $uid, string $content, string $structurePath='')
 
 findRef (string $table, string $field, int $uid, string $content, string $spKey, array $spParams, string $structurePath='')
 

Protected Attributes

string $parserKey = ''
 
array $parameters = []
 

Detailed Description

Just report if a value is found, nothing more.

Definition at line 23 of file NotifySoftReferenceParser.php.

Member Function Documentation

◆ findRef()

TYPO3\CMS\Core\DataHandling\SoftReference\NotifySoftReferenceParser::findRef ( string  $table,
string  $field,
int  $uid,
string  $content,
string  $spKey,
array  $spParams,
string  $structurePath = '' 
)

will be removed in favor of ->parse() in TYPO3 v12.0.

Definition at line 59 of file NotifySoftReferenceParser.php.

References TYPO3\CMS\Core\DataHandling\SoftReference\NotifySoftReferenceParser\parse().

◆ getParserKey()

TYPO3\CMS\Core\DataHandling\SoftReference\NotifySoftReferenceParser::getParserKey ( )

Returns the parser key, which was previously set by "setParserKey"

Returns
‪string

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

Definition at line 38 of file NotifySoftReferenceParser.php.

References TYPO3\CMS\Core\DataHandling\SoftReference\NotifySoftReferenceParser\$parserKey.

◆ parse()

TYPO3\CMS\Core\DataHandling\SoftReference\NotifySoftReferenceParser::parse ( string  $table,
string  $field,
int  $uid,
string  $content,
string  $structurePath = '' 
)

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

Parameters
string$tableDatabase 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 43 of file NotifySoftReferenceParser.php.

References TYPO3\CMS\Core\DataHandling\SoftReference\SoftReferenceParserResult\create().

Referenced by TYPO3\CMS\Core\DataHandling\SoftReference\NotifySoftReferenceParser\findRef().

◆ setParserKey()

TYPO3\CMS\Core\DataHandling\SoftReference\NotifySoftReferenceParser::setParserKey ( string  $parserKey,
array  $parameters 
)
Parameters
string$parserKey‪The softref parser key.
array$parameters‪Parameters of the softlink parser. Basically this is the content inside optional []-brackets after the softref keys. Parameters are exploded by ";

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

Definition at line 32 of file NotifySoftReferenceParser.php.

References TYPO3\CMS\Core\DataHandling\SoftReference\NotifySoftReferenceParser\$parameters, and TYPO3\CMS\Core\DataHandling\SoftReference\NotifySoftReferenceParser\$parserKey.

Member Data Documentation

◆ $parameters

array TYPO3\CMS\Core\DataHandling\SoftReference\NotifySoftReferenceParser::$parameters = []
protected

◆ $parserKey

string TYPO3\CMS\Core\DataHandling\SoftReference\NotifySoftReferenceParser::$parserKey = ''
protected