‪TYPO3CMS  10.4
TYPO3\CMS\Core\DataHandling\Model\CorrelationId Class Reference
Inheritance diagram for TYPO3\CMS\Core\DataHandling\Model\CorrelationId:

Public Member Functions

 __toString ()
 
 jsonSerialize ()
 
 withSubject (string $subject)
 
 withAspects (string ... $aspects)
 
string null getScope ()
 
string null getSubject ()
 
string[] getAspects ()
 

Static Public Member Functions

static static forScope (string $scope)
 
static forSubject (string $subject, string ... $aspects)
 
static static fromString (string $correlationId)
 

Protected Member Functions

 serialize ()
 

Static Protected Member Functions

static static create ()
 

Protected Attributes

const DEFAULT_VERSION = 1
 
const PATTERN_V1 = '#^(?P<flags>[[:xdigit:]]{4})\$(?:(?P<scope>[[:alnum:]]+):)?(?P<subject>[[:alnum:]]+)(?P<aspects>(?:\/[[:alnum:]._-]+)*)$#'
 
int $version = self::DEFAULT_VERSION
 
string $scope
 
int $capabilities = 0
 
string $subject
 
string[] $aspects = array( )
 

Detailed Description

CorrelationId representation

Todo:
‪Check internal state during v10 development

Definition at line 28 of file CorrelationId.php.

Member Function Documentation

◆ __toString()

TYPO3\CMS\Core\DataHandling\Model\CorrelationId::__toString ( )

◆ create()

static static TYPO3\CMS\Core\DataHandling\Model\CorrelationId::create ( )
staticprotected
Returns
‪static

Definition at line 95 of file CorrelationId.php.

◆ forScope()

static static TYPO3\CMS\Core\DataHandling\Model\CorrelationId::forScope ( string  $scope)
static

◆ forSubject()

◆ fromString()

static static TYPO3\CMS\Core\DataHandling\Model\CorrelationId::fromString ( string  $correlationId)
static

◆ getAspects()

string [] TYPO3\CMS\Core\DataHandling\Model\CorrelationId::getAspects ( )

◆ getScope()

string null TYPO3\CMS\Core\DataHandling\Model\CorrelationId::getScope ( )
Returns
‪string|null

Definition at line 136 of file CorrelationId.php.

References TYPO3\CMS\Core\DataHandling\Model\CorrelationId\$scope.

◆ getSubject()

string null TYPO3\CMS\Core\DataHandling\Model\CorrelationId::getSubject ( )

◆ jsonSerialize()

TYPO3\CMS\Core\DataHandling\Model\CorrelationId::jsonSerialize ( )

Definition at line 108 of file CorrelationId.php.

◆ serialize()

TYPO3\CMS\Core\DataHandling\Model\CorrelationId::serialize ( )
protected

v1 specs (eBNF)

  • ‪FLAGS "$" [ SCOPE ":" ] SUBJECT { "/" ASPECT }
    • ‪FLAGS ::= XDIGIT (* 16-bit integer big-endian)
    • ‪SCOPE ::= ALNUM { ALNUM }
    • ‪SUBJECT ::= ALNUM { ALNUM }
    • ‪ASPECT ::= ( ALNUM | '.' | '_' | '-' ) { ( ALNUM | '.' | '_' | '-' ) }

Definition at line 165 of file CorrelationId.php.

References TYPO3\CMS\Core\DataHandling\Model\CorrelationId\$capabilities.

Referenced by TYPO3\CMS\Core\DataHandling\Model\CorrelationId\__toString().

◆ withAspects()

TYPO3\CMS\Core\DataHandling\Model\CorrelationId::withAspects ( string ...  $aspects)

◆ withSubject()

TYPO3\CMS\Core\DataHandling\Model\CorrelationId::withSubject ( string  $subject)

Member Data Documentation

◆ $aspects

◆ $capabilities

int TYPO3\CMS\Core\DataHandling\Model\CorrelationId::$capabilities = 0
protected

◆ $scope

string TYPO3\CMS\Core\DataHandling\Model\CorrelationId::$scope
protected

◆ $subject

◆ $version

int TYPO3\CMS\Core\DataHandling\Model\CorrelationId::$version = self::DEFAULT_VERSION
protected

Definition at line 35 of file CorrelationId.php.

◆ DEFAULT_VERSION

const TYPO3\CMS\Core\DataHandling\Model\CorrelationId::DEFAULT_VERSION = 1
protected

Definition at line 30 of file CorrelationId.php.

◆ PATTERN_V1

const TYPO3\CMS\Core\DataHandling\Model\CorrelationId::PATTERN_V1 = '#^(?P<flags>[[:xdigit:]]{4})\$(?:(?P<scope>[[:alnum:]]+):)?(?P<subject>[[:alnum:]]+)(?P<aspects>(?:\/[[:alnum:]._-]+)*)$#'
protected

Definition at line 31 of file CorrelationId.php.