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
파일 보기 프로젝트 열기: neos/neos-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$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