‪TYPO3CMS  ‪main
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)
 
 getScope ()
 
 getSubject ()
 
string[] getAspects ()
 

Static Public Member Functions

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

Protected Member Functions

 serialize ()
 

Static Protected Member Functions

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 = null
 
int $capabilities = 0
 
string $subject = null
 
array $aspects = []
 

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 TYPO3\CMS\Core\DataHandling\Model\CorrelationId::create ( )
staticprotected

Definition at line 73 of file CorrelationId.php.

◆ forScope()

◆ forSubject()

◆ fromString()

◆ getAspects()

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

Definition at line 124 of file CorrelationId.php.

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

◆ getScope()

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

◆ getSubject()

◆ jsonSerialize()

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

Definition at line 86 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 137 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 = null
protected

◆ $subject

string TYPO3\CMS\Core\DataHandling\Model\CorrelationId::$subject = null
protected

◆ $version

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

Definition at line 32 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.