‪TYPO3CMS  ‪main
TYPO3\CMS\Core\DataHandling\SoftReference\UrlSoftReferenceParser Class Reference
Inheritance diagram for TYPO3\CMS\Core\DataHandling\SoftReference\UrlSoftReferenceParser:
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 ()
 

Protected Attributes

const REGEXP = '/([^[:alnum:]"\']+)((https?|ftp):\\/\\/(?:[!#$&-;=?-\[\]_a-z~]+|%[0-9a-fA-F]{2})+)([[:space:]])?/'
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\DataHandling\SoftReference\AbstractSoftReferenceParser
string $tokenID_basePrefix = ''
 
string $parserKey = ''
 
array $parameters = []
 

Additional Inherited Members

- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\DataHandling\SoftReference\AbstractSoftReferenceParser
 setTokenIdBasePrefix (string $table, string $uid, string $field, string $structurePath)
 

Detailed Description

Finding URLs in content

Definition at line 23 of file UrlSoftReferenceParser.php.

Member Function Documentation

◆ parse()

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

References TYPO3\CMS\Core\DataHandling\SoftReference\SoftReferenceParserResult\create(), and TYPO3\CMS\Core\DataHandling\SoftReference\AbstractSoftReferenceParser\makeTokenID().

Member Data Documentation

◆ REGEXP

const TYPO3\CMS\Core\DataHandling\SoftReference\UrlSoftReferenceParser::REGEXP = '/([^[:alnum:]"\']+)((https?|ftp):\\/\\/(?:[!#$&-;=?-\[\]_a-z~]+|%[0-9a-fA-F]{2})+)([[:space:]])?/'
protected

Definition at line 25 of file UrlSoftReferenceParser.php.