ExtensionPathSoftReferenceParser

class \TYPO3\CMS\Core\DataHandling\SoftReference\ExtensionPathSoftReferenceParser

Implements
SoftReferenceParserInterface

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

Table of Contents

Interfaces

SoftReferenceParserInterface
Soft Reference parsing interface

Properties

$parameters  : array
$parserKey  : string

Methods

getParserKey()  : string
Returns the parser key, which was previously set by "setParserKey"
parse()  : SoftReferenceParserResult
Main function through which can parse content for a specific field.
setParserKey()  : void
The two properties parserKey and parameters may be set to generate a unique token ID from them.

Properties

$parameters

protected array $parameters = []

$parserKey

protected string $parserKey = ''

Methods

getParserKey()

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

public getParserKey() : string

Return values

string

parse()

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

public parse(string $table, string $field, int $uid, string $content[, string $structurePath = '' ]) : SoftReferenceParserResult

Parameters

$table : string

Database table name

$field : string

Field name for which processing occurs

$uid : int

UID of the record

$content : string

The content/value of the field

$structurePath : string = ''

If running from inside a FlexForm structure, this is the path of the tag.

Return values

SoftReferenceParserResult —

Result object on positive matches, see description above.

setParserKey()

The two properties parserKey and parameters may be set to generate a unique token ID from them.

public setParserKey(string $parserKey, array $parameters) : void

Parameters

$parserKey : string

The softref parser key.

$parameters : array

Parameters of the softlink parser. Basically this is the content inside optional []-brackets after the softref keys. Parameters are exploded by ";

On this page