‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Log\LogDataTrait Class Reference
Inheritance diagram for TYPO3\CMS\Core\Log\LogDataTrait:
TYPO3\CMS\Backend\EventListener\FailedLoginAttemptNotification TYPO3\CMS\Belog\Domain\Model\LogEntry TYPO3\CMS\Core\Tests\Functional\DataScenarios\AbstractDataHandlerActionTestCase TYPO3\CMS\Lowlevel\Command\ListSysLogCommand TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer TYPO3\CMS\Core\Tests\Functional\DataScenarios\CategoryManyToMany\AbstractActionTestCase TYPO3\CMS\Core\Tests\Functional\DataScenarios\CategoryOneToMany\AbstractActionTestCase TYPO3\CMS\Core\Tests\Functional\DataScenarios\CategoryOneToOne\AbstractActionTestCase TYPO3\CMS\Core\Tests\Functional\DataScenarios\FAL\AbstractActionTestCase TYPO3\CMS\Core\Tests\Functional\DataScenarios\FlexSectionContainer\AbstractActionTestCase TYPO3\CMS\Core\Tests\Functional\DataScenarios\Group\AbstractActionTestCase TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreCsv\AbstractActionTestCase TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignField\AbstractActionTestCase TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\AbstractActionTestCase TYPO3\CMS\Core\Tests\Functional\DataScenarios\ManyToMany\AbstractActionTestCase TYPO3\CMS\Core\Tests\Functional\DataScenarios\Regular\AbstractActionTestCase TYPO3\CMS\Core\Tests\Functional\DataScenarios\Select\AbstractActionTestCase TYPO3\CMS\Core\Tests\Functional\DataScenarios\SelectFlex\AbstractActionTestCase

Protected Member Functions

 unserializeLogData (mixed $logData)
 
 formatLogDetails (string $detailString, mixed $substitutes)
 

Static Protected Member Functions

static formatLogDetailsStatic (string $detailString, array $substitutes)
 

Detailed Description

Helper for handling both serialize()/unserialize() and json_encode()/json_decode() when migrating to json-encoded strings.

Definition at line 24 of file LogDataTrait.php.

Member Function Documentation

◆ formatLogDetails()

TYPO3\CMS\Core\Log\LogDataTrait::formatLogDetails ( string  $detailString,
mixed  $substitutes 
)
protected

◆ formatLogDetailsStatic()

static TYPO3\CMS\Core\Log\LogDataTrait::formatLogDetailsStatic ( string  $detailString,
array  $substitutes 
)
staticprotected

Static version for ViewHelpers etc.

Replaces a string with placeholders (s or {myPlaceholder}) with its substitutes.

Definition at line 56 of file LogDataTrait.php.

Referenced by TYPO3\CMS\Core\Log\LogDataTrait\formatLogDetails().

◆ unserializeLogData()

TYPO3\CMS\Core\Log\LogDataTrait::unserializeLogData ( mixed  $logData)
protected

Useful for handling old serialized data, which might have been migrated to JSON encoded properties already.

Definition at line 30 of file LogDataTrait.php.

Referenced by TYPO3\CMS\Lowlevel\Command\ListSysLogCommand\execute(), TYPO3\CMS\Core\Log\LogDataTrait\formatLogDetails(), TYPO3\CMS\Workspaces\Controller\Remote\RemoteServer\getCommentsForRecord(), and TYPO3\CMS\Belog\Domain\Model\LogEntry\getLogData().