PHP Класс Neos\Flow\Property\TypeConverter\SessionConverter

Given a session ID this will return an instance of Neos\Flow\Session\Session.
Наследование: extends AbstractTypeConverter
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$priority integer
$sessionManager Neos\Flow\Session\SessionManagerInterface
$sourceTypes array
$targetType string

Открытые методы

Метод Описание
canConvertFrom ( mixed $source, string $targetType ) : boolean This implementation always returns TRUE for this method.
convertFrom ( string $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : object Convert a session identifier from $source to a Session object

Описание методов

canConvertFrom() публичный Метод

This implementation always returns TRUE for this method.
public canConvertFrom ( mixed $source, string $targetType ) : boolean
$source mixed the source data
$targetType string the type to convert to.
Результат boolean TRUE if this TypeConverter can convert from $source to $targetType, FALSE otherwise.

convertFrom() публичный Метод

Convert a session identifier from $source to a Session object
public convertFrom ( string $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : object
$source string
$targetType string
$convertedChildProperties array
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
Результат object the target type

Описание свойств

$priority защищенное свойство

protected int $priority
Результат integer

$sessionManager защищенное свойство

protected SessionManagerInterface,Neos\Flow\Session $sessionManager
Результат Neos\Flow\Session\SessionManagerInterface

$sourceTypes защищенное свойство

protected array $sourceTypes
Результат array

$targetType защищенное свойство

protected string $targetType
Результат string