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

Public Member Functions

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

Protected Attributes

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

Private Attributes

const REGEXP = '/([^[:alnum:]]+)(EXT:[[:alnum:]_]+\\/[^[:space:]"\',]*)/'
 

Detailed Description

Finding reference to files from extensions in content, but only to notify about their existence. No substitution

Definition at line 23 of file ExtensionPathSoftReferenceParser.php.

Member Function Documentation

◆ getParserKey()

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

◆ parse()

TYPO3\CMS\Core\DataHandling\SoftReference\ExtensionPathSoftReferenceParser::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 29 of file ExtensionPathSoftReferenceParser.php.

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

◆ setParserKey()

TYPO3\CMS\Core\DataHandling\SoftReference\ExtensionPathSoftReferenceParser::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 51 of file ExtensionPathSoftReferenceParser.php.

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

Member Data Documentation

◆ $parameters

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

◆ $parserKey

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

◆ REGEXP

const TYPO3\CMS\Core\DataHandling\SoftReference\ExtensionPathSoftReferenceParser::REGEXP = '/([^[:alnum:]]+)(EXT:[[:alnum:]_]+\\/[^[:space:]"\',]*)/'
private

Definition at line 25 of file ExtensionPathSoftReferenceParser.php.