PHP Class Neos\Neos\Ui\Domain\Service\NodePropertyConversionService

Afficher le fichier Open project: neos/neos-ui Class Usage Examples

Protected Properties

Свойство Type Description
$objectManager TYPO3\Flow\Object\ObjectManagerInterface
$objectManager TYPO3\Flow\ObjectManagement\ObjectManagerInterface
$propertyMapper TYPO3\Flow\Property\PropertyMapper

Méthodes publiques

Méthode Description
convert ( TYPO3\TYPO3CR\Domain\Model\NodeType $nodeType, string $propertyName, string $rawValue, TYPO3\TYPO3CR\Domain\Service\Context $context ) : mixed Convert raw property values to the correct type according to a node type configuration

Méthodes protégées

Méthode Description
convertArray ( string $rawValue ) : array Convert raw value to array
convertBoolean ( mixed $rawValue ) : boolean Convert raw value to boolean
convertDateTime ( string $rawValue ) : DateTime | null Convert raw value to \DateTime
convertInteger ( mixed $rawValue ) : integer Convert raw value to integer
convertReference ( string $rawValue, TYPO3\TYPO3CR\Domain\Service\Context $context ) : TYPO3\TYPO3CR\Domain\Model\NodeInterface Convert raw value to reference
convertReferences ( string $rawValue, TYPO3\TYPO3CR\Domain\Service\Context $context ) : array Convert raw value to references

Method Details

convert() public méthode

Convert raw property values to the correct type according to a node type configuration
public convert ( TYPO3\TYPO3CR\Domain\Model\NodeType $nodeType, string $propertyName, string $rawValue, TYPO3\TYPO3CR\Domain\Service\Context $context ) : mixed
$nodeType TYPO3\TYPO3CR\Domain\Model\NodeType
$propertyName string
$rawValue string
$context TYPO3\TYPO3CR\Domain\Service\Context
Résultat mixed

convertArray() protected méthode

Convert raw value to array
protected convertArray ( string $rawValue ) : array
$rawValue string
Résultat array

convertBoolean() protected méthode

Convert raw value to boolean
protected convertBoolean ( mixed $rawValue ) : boolean
$rawValue mixed
Résultat boolean

convertDateTime() protected méthode

Convert raw value to \DateTime
protected convertDateTime ( string $rawValue ) : DateTime | null
$rawValue string
Résultat DateTime | null

convertInteger() protected méthode

Convert raw value to integer
protected convertInteger ( mixed $rawValue ) : integer
$rawValue mixed
Résultat integer

convertReference() protected méthode

Convert raw value to reference
protected convertReference ( string $rawValue, TYPO3\TYPO3CR\Domain\Service\Context $context ) : TYPO3\TYPO3CR\Domain\Model\NodeInterface
$rawValue string
$context TYPO3\TYPO3CR\Domain\Service\Context
Résultat TYPO3\TYPO3CR\Domain\Model\NodeInterface

convertReferences() protected méthode

Convert raw value to references
protected convertReferences ( string $rawValue, TYPO3\TYPO3CR\Domain\Service\Context $context ) : array
$rawValue string
$context TYPO3\TYPO3CR\Domain\Service\Context
Résultat array

Property Details

$objectManager protected_oe property

protected ObjectManagerInterface,TYPO3\Flow\Object $objectManager
Résultat TYPO3\Flow\Object\ObjectManagerInterface

$objectManager protected_oe property

protected ObjectManagerInterface,TYPO3\Flow\ObjectManagement $objectManager
Résultat TYPO3\Flow\ObjectManagement\ObjectManagerInterface

$propertyMapper protected_oe property

protected PropertyMapper,TYPO3\Flow\Property $propertyMapper
Résultat TYPO3\Flow\Property\PropertyMapper