PHP Класс Neos\ContentRepository\Migration\Transformations\ChangePropertyValue

This can apply two transformations: If newValue is set, the value will be set to this, with any occurrences of the currentValuePlaceholder replaced with the current value of the property. If search and replace are given, that replacement will be done on the value (after applying the newValue if set).
Наследование: extends AbstractTransformation
Показать файл Открыть проект

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

Свойство Тип Описание
$currentValuePlaceholder string Placeholder for the current property value to be inserted in newValue.
$newValue string
$propertyName string
$replace string
$search string

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

Метод Описание
execute ( NodeData $node ) : void Change the property on the given node.
isTransformable ( NodeData $node ) : boolean If the given node has the property this transformation should work on, this returns TRUE.
setCurrentValuePlaceholder ( string $currentValuePlaceholder ) : void The value of this option (defaults to "{current}") will be used to include the current property value into the new value.
setNewValue ( string $newValue ) : void New property value to be set.
setProperty ( string $propertyName ) : void Sets the name of the property to change.
setReplace ( string $replace ) : void Replacement for the search string
setSearch ( string $search ) : void Search string to replace in current property value.

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

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

Change the property on the given node.
public execute ( NodeData $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeData
Результат void

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

If the given node has the property this transformation should work on, this returns TRUE.
public isTransformable ( NodeData $node ) : boolean
$node Neos\ContentRepository\Domain\Model\NodeData
Результат boolean

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

The value of this option (defaults to "{current}") will be used to include the current property value into the new value.
public setCurrentValuePlaceholder ( string $currentValuePlaceholder ) : void
$currentValuePlaceholder string
Результат void

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

The value of the option "currentValuePlaceholder" (defaults to "{current}") will be used to include the current property value into the new value.
public setNewValue ( string $newValue ) : void
$newValue string
Результат void

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

Sets the name of the property to change.
public setProperty ( string $propertyName ) : void
$propertyName string
Результат void

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

Replacement for the search string
public setReplace ( string $replace ) : void
$replace string
Результат void

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

Search string to replace in current property value.
public setSearch ( string $search ) : void
$search string
Результат void

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

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

Placeholder for the current property value to be inserted in newValue.
protected string $currentValuePlaceholder
Результат string

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

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

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

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

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

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